Home » date » 2010 » Nov » 30 »

EXERCISE 2 ANOVA 2

*The author of this computation has been verified*
R Software Module: Ian.Holliday/rwasp_One Factor ANOVA.wasp (opens new window with default values)
Title produced by software: One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)
Date of computation: Tue, 30 Nov 2010 13:15:21 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/30/t1291122846811quq5rw27vdzj.htm/, Retrieved Tue, 30 Nov 2010 14:14:07 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Nov/30/t1291122846811quq5rw27vdzj.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
44 80 34 80 56 80 59 80 50 80 50 80 48 81 46 81 59 81 54 81 44 81 50 81 43 81 39 82 42 82 52 82 41 83 46 83 57 83 43 83 52 83 57 83 59 83 56 83 41 84 50 84 50 84 41 84 48 84 48 84 37 84 55 85 44 85 30 85 44 85 54 85 55 85 59 85 48 85 59 85 37 85 39 85 48 85 36 86 56 86 54 86 52 86 66 86 55 86 60 86 52 87 36 87 32 87 34 87 36 87 56 87 50 88 39 88 52 89 44 89 46 89 44 89 41 89 56 90 54 90 50 91 52 91 55 91 62 92 52 92 57 92 34 92 30 92 39 92 34 93 37 93 52 93 58 93 48 93 46 93 46 93 52 93 50 93
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


ANOVA Model
MC30VRB ~ MVRIQ2
means48.8330.31-4.52.542-3.833-1.1675.31-7.833-4.333-3.4336.1673.5-3.167-1.833


ANOVA Statistics
DfSum SqMean SqF valuePr(>F)
MVRIQ2131020.08678.4681.1690.32
Residuals694631.45667.123


Tukey Honest Significant Difference Comparisons
difflwruprp adj
81-800.31-15.53516.1541
82-80-4.5-24.63715.6371
83-802.542-12.83917.9221
84-80-3.833-19.67712.0111
85-80-1.167-15.40613.0731
86-805.31-10.53521.1540.996
87-80-7.833-24.2758.6090.924
88-80-4.333-27.58618.9191
89-80-3.433-20.67813.8111
90-806.167-17.08629.4191
91-803.5-16.63723.6371
92-80-3.167-19.60913.2751
93-80-1.833-16.84313.1761
82-81-4.81-24.46214.8431
83-812.232-12.50716.9711
84-81-4.143-19.36511.081
85-81-1.476-15.0212.0681
86-815-10.22220.2220.997
87-81-8.143-23.9877.7010.875
88-81-4.643-27.47718.1911
89-81-3.743-20.41812.9331
90-815.857-16.97728.6911
91-813.19-16.46222.8431
92-81-3.476-19.3212.3681
93-81-2.143-16.49512.2091
83-827.042-12.23826.3220.991
84-820.667-18.98520.3191
85-823.333-15.0521.7161
86-829.81-9.84329.4620.896
87-82-3.333-23.47116.8041
88-820.167-25.83126.1641
89-821.067-19.73121.8651
90-8210.667-15.33136.6640.975
91-828-15.25331.2530.995
92-821.333-18.80421.4711
93-822.667-16.31921.6521
84-83-6.375-21.1148.3640.962
85-83-3.708-16.7079.290.999
86-832.768-11.97117.5071
87-83-10.375-25.7555.0050.529
88-83-6.875-29.38915.6390.998
89-83-5.975-22.2110.260.99
90-833.625-18.88926.1391
91-830.958-18.32220.2381
92-83-5.708-21.0899.6720.99
93-83-4.375-18.2139.4630.998
85-842.667-10.87816.2111
86-849.143-6.0824.3650.707
87-84-4-19.84411.8441
88-84-0.5-23.33422.3341
89-840.4-16.27517.0751
90-8410-12.83432.8340.959
91-847.333-12.31926.9850.989
92-840.667-15.17716.5111
93-842-12.35216.3521
86-856.476-7.06820.020.922
87-85-6.667-20.9067.5730.932
88-85-3.167-24.91818.5841
89-85-2.267-17.42612.8921
90-857.333-14.41829.0840.996
91-854.667-13.71623.051
92-85-2-16.23912.2391
93-85-0.667-13.22511.8911
87-86-13.143-28.9872.7010.21
88-86-9.643-32.47713.1910.969
89-86-8.743-25.4187.9330.858
90-860.857-21.97723.6911
91-86-1.81-21.46217.8431
92-86-8.476-24.327.3680.84
93-86-7.143-21.4957.2090.898
88-873.5-19.75326.7531
89-874.4-12.84521.6451
90-8714-9.25337.2530.703
91-8711.333-8.80431.4710.788
92-874.667-11.77521.1090.999
93-876-9.0121.010.98
89-880.9-22.92724.7271
90-8810.5-17.97938.9790.99
91-887.833-18.16433.8310.999
92-881.167-22.08624.4191
93-882.5-19.76324.7631
90-899.6-14.22733.4270.979
91-896.933-13.86527.7310.996
92-890.267-16.97817.5111
93-891.6-14.28517.4851
91-90-2.667-28.66423.3311
92-90-9.333-32.58613.9190.979
93-90-8-30.26314.2630.992
92-91-6.667-26.80413.4710.996
93-91-5.333-24.31913.6520.999
93-921.333-13.67616.3431


Levenes Test for Homogeneity of Variance
DfF valuePr(>F)
Group131.190.305
69
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291122846811quq5rw27vdzj/3g2dl1291122916.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291122846811quq5rw27vdzj/3g2dl1291122916.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291122846811quq5rw27vdzj/4g2dl1291122916.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291122846811quq5rw27vdzj/4g2dl1291122916.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = 2 ; par3 = TRUE ;
 
Parameters (R input):
par1 = 1 ; par2 = 2 ; par3 = TRUE ;
 
R code (references can be found in the software module):
cat1 <- as.numeric(par1) #
cat2<- as.numeric(par2) #
intercept<-as.logical(par3)
x <- t(x)
x1<-as.numeric(x[,cat1])
f1<-as.character(x[,cat2])
xdf<-data.frame(x1,f1)
(V1<-dimnames(y)[[1]][cat1])
(V2<-dimnames(y)[[1]][cat2])
names(xdf)<-c('Response', 'Treatment')
if(intercept == FALSE) (lmxdf<-lm(Response ~ Treatment - 1, data = xdf) ) else (lmxdf<-lm(Response ~ Treatment, data = xdf) )
(aov.xdf<-aov(lmxdf) )
(anova.xdf<-anova(lmxdf) )
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'ANOVA Model', length(lmxdf$coefficients)+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, paste(V1, ' ~ ', V2), length(lmxdf$coefficients)+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'means',,TRUE)
for(i in 1:length(lmxdf$coefficients)){
a<-table.element(a, round(lmxdf$coefficients[i], digits=3),,FALSE)
}
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'ANOVA Statistics', 5+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, ' ',,TRUE)
a<-table.element(a, 'Df',,FALSE)
a<-table.element(a, 'Sum Sq',,FALSE)
a<-table.element(a, 'Mean Sq',,FALSE)
a<-table.element(a, 'F value',,FALSE)
a<-table.element(a, 'Pr(>F)',,FALSE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, V2,,TRUE)
a<-table.element(a, anova.xdf$Df[1],,FALSE)
a<-table.element(a, round(anova.xdf$'Sum Sq'[1], digits=3),,FALSE)
a<-table.element(a, round(anova.xdf$'Mean Sq'[1], digits=3),,FALSE)
a<-table.element(a, round(anova.xdf$'F value'[1], digits=3),,FALSE)
a<-table.element(a, round(anova.xdf$'Pr(>F)'[1], digits=3),,FALSE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residuals',,TRUE)
a<-table.element(a, anova.xdf$Df[2],,FALSE)
a<-table.element(a, round(anova.xdf$'Sum Sq'[2], digits=3),,FALSE)
a<-table.element(a, round(anova.xdf$'Mean Sq'[2], digits=3),,FALSE)
a<-table.element(a, ' ',,FALSE)
a<-table.element(a, ' ',,FALSE)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
bitmap(file='anovaplot.png')
boxplot(Response ~ Treatment, data=xdf, xlab=V2, ylab=V1)
dev.off()
if(intercept==TRUE){
thsd<-TukeyHSD(aov.xdf)
bitmap(file='TukeyHSDPlot.png')
plot(thsd)
dev.off()
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Tukey Honest Significant Difference Comparisons', 5,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, ' ', 1, TRUE)
for(i in 1:4){
a<-table.element(a,colnames(thsd[[1]])[i], 1, TRUE)
}
a<-table.row.end(a)
for(i in 1:length(rownames(thsd[[1]]))){
a<-table.row.start(a)
a<-table.element(a,rownames(thsd[[1]])[i], 1, TRUE)
for(j in 1:4){
a<-table.element(a,round(thsd[[1]][i,j], digits=3), 1, FALSE)
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
}
if(intercept==FALSE){
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'TukeyHSD Message', 1,TRUE)
a<-table.row.end(a)
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Must Include Intercept to use Tukey Test ', 1, FALSE)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable2.tab')
}
library(car)
lt.lmxdf<-levene.test(lmxdf)
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Levenes Test for Homogeneity of Variance', 4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,' ', 1, TRUE)
for (i in 1:3){
a<-table.element(a,names(lt.lmxdf)[i], 1, FALSE)
}
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Group', 1, TRUE)
for (i in 1:3){
a<-table.element(a,round(lt.lmxdf[[i]][1], digits=3), 1, FALSE)
}
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,' ', 1, TRUE)
a<-table.element(a,lt.lmxdf[[1]][2], 1, FALSE)
a<-table.element(a,' ', 1, FALSE)
a<-table.element(a,' ', 1, FALSE)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by