R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- array(list(1 + ,26 + ,23 + ,1 + ,20 + ,24 + ,1 + ,19 + ,22 + ,0 + ,19 + ,20 + ,1 + ,20 + ,24 + ,1 + ,25 + ,27 + ,0 + ,25 + ,28 + ,1 + ,22 + ,27 + ,1 + ,26 + ,24 + ,1 + ,22 + ,23 + ,0 + ,17 + ,24 + ,0 + ,22 + ,27 + ,1 + ,19 + ,27 + ,1 + ,24 + ,28 + ,1 + ,26 + ,27 + ,0 + ,21 + ,23 + ,1 + ,13 + ,24 + ,0 + ,26 + ,28 + ,0 + ,20 + ,27 + ,1 + ,22 + ,25 + ,0 + ,14 + ,19 + ,1 + ,21 + ,24 + ,1 + ,7 + ,20 + ,0 + ,23 + ,28 + ,1 + ,17 + ,26 + ,1 + ,25 + ,23 + ,1 + ,25 + ,23 + ,1 + ,19 + ,20 + ,0 + ,20 + ,11 + ,1 + ,23 + ,24 + ,1 + ,22 + ,25 + ,1 + ,22 + ,23 + ,1 + ,21 + ,18 + ,0 + ,15 + ,20 + ,0 + ,20 + ,20 + ,0 + ,22 + ,24 + ,1 + ,18 + ,23 + ,0 + ,20 + ,25 + ,0 + ,28 + ,28 + ,1 + ,22 + ,26 + ,1 + ,18 + ,26 + ,1 + ,23 + ,23 + ,1 + ,20 + ,22 + ,0 + ,25 + ,24 + ,0 + ,26 + ,21 + ,1 + ,15 + ,20 + ,0 + ,17 + ,22 + ,0 + ,23 + ,20 + ,1 + ,21 + ,25 + ,0 + ,13 + ,20 + ,1 + ,18 + ,22 + ,1 + ,19 + ,23 + ,1 + ,22 + ,25 + ,1 + ,16 + ,23 + ,0 + ,24 + ,23 + ,1 + ,18 + ,22 + ,1 + ,20 + ,24 + ,1 + ,24 + ,25 + ,0 + ,14 + ,21 + ,0 + ,22 + ,12 + ,1 + ,24 + ,17 + ,1 + ,18 + ,20 + ,1 + ,21 + ,23 + ,0 + ,23 + ,23 + ,1 + ,17 + ,20 + ,0 + ,22 + ,28 + ,0 + ,24 + ,24 + ,0 + ,21 + ,24 + ,1 + ,22 + ,24 + ,1 + ,16 + ,24 + ,1 + ,21 + ,28 + ,0 + ,23 + ,25 + ,0 + ,22 + ,21 + ,1 + ,24 + ,25 + ,1 + ,24 + ,25 + ,1 + ,16 + ,18 + ,1 + ,16 + ,17 + ,0 + ,21 + ,26 + ,0 + ,26 + ,28 + ,0 + ,15 + ,21 + ,0 + ,25 + ,27 + ,1 + ,18 + ,22 + ,1 + ,23 + ,21 + ,1 + ,20 + ,25 + ,0 + ,17 + ,22 + ,0 + ,25 + ,23 + ,1 + ,24 + ,26 + ,1 + ,17 + ,19 + ,1 + ,19 + ,25 + ,1 + ,20 + ,21 + ,1 + ,15 + ,13 + ,0 + ,27 + ,24 + ,1 + ,22 + ,25 + ,1 + ,23 + ,26 + ,1 + ,16 + ,25 + ,1 + ,19 + ,25 + ,0 + ,25 + ,22 + ,1 + ,19 + ,21 + ,0 + ,19 + ,23 + ,0 + ,26 + ,25 + ,1 + ,21 + ,24 + ,0 + ,20 + ,21 + ,1 + ,24 + ,21 + ,1 + ,22 + ,25 + ,0 + ,20 + ,22 + ,1 + ,18 + ,20 + ,0 + ,18 + ,20 + ,1 + ,24 + ,23 + ,1 + ,24 + ,28 + ,1 + ,22 + ,23 + ,1 + ,23 + ,28 + ,1 + ,22 + ,24 + ,1 + ,20 + ,18 + ,1 + ,18 + ,20 + ,1 + ,25 + ,28 + ,0 + ,18 + ,21 + ,1 + ,16 + ,21 + ,1 + ,20 + ,25 + ,0 + ,19 + ,19 + ,1 + ,15 + ,18 + ,1 + ,19 + ,21 + ,1 + ,19 + ,22 + ,1 + ,16 + ,24 + ,1 + ,17 + ,15 + ,1 + ,28 + ,28 + ,0 + ,23 + ,26 + ,1 + ,25 + ,23 + ,1 + ,20 + ,26 + ,0 + ,17 + ,20 + ,0 + ,23 + ,22 + ,1 + ,16 + ,20 + ,0 + ,23 + ,23 + ,0 + ,11 + ,22 + ,0 + ,18 + ,24 + ,0 + ,24 + ,23 + ,1 + ,23 + ,22 + ,1 + ,21 + ,26 + ,0 + ,16 + ,23 + ,0 + ,24 + ,27 + ,1 + ,23 + ,23 + ,1 + ,18 + ,21 + ,1 + ,20 + ,26 + ,1 + ,9 + ,23 + ,0 + ,24 + ,21 + ,1 + ,25 + ,27 + ,1 + ,20 + ,19 + ,0 + ,21 + ,23 + ,0 + ,25 + ,25 + ,0 + ,22 + ,23 + ,0 + ,21 + ,22 + ,1 + ,21 + ,22 + ,1 + ,22 + ,25 + ,1 + ,27 + ,25 + ,0 + ,24 + ,28 + ,0 + ,24 + ,28 + ,0 + ,21 + ,20 + ,1 + ,18 + ,25 + ,1 + ,16 + ,19 + ,1 + ,22 + ,25 + ,1 + ,20 + ,22 + ,0 + ,18 + ,18 + ,1 + ,20 + ,20) + ,dim=c(3 + ,162) + ,dimnames=list(c('Geslacht' + ,'I1' + ,'E1') + ,1:162)) > y <- array(NA,dim=c(3,162),dimnames=list(c('Geslacht','I1','E1'),1:162)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par4 = 'FALSE' > par3 = '3' > par2 = '2' > par1 = '1' > ylab = 'Y Variable Name' > xlab = 'X Variable Name' > main = 'Title Goes Here' > par4 <- 'FALSE' > par3 <- '3' > par2 <- '2' > par1 <- '1' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: aston2 > #To cite this work: Ian E. Holliday, 2012, Two-Way ANOVA (v1.0.3) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/Ian.Holliday/rwasp_Two%20Factor%20ANOVA.wasp/ > #Source of accompanying publication: > # > cat1 <- as.numeric(par1) # > cat2<- as.numeric(par2) # > cat3 <- as.numeric(par3) > intercept<-as.logical(par4) > x <- t(x) > x1<-as.numeric(x[,cat1]) > f1<-as.character(x[,cat2]) > f2 <- as.character(x[,cat3]) > xdf<-data.frame(x1,f1, f2) > (V1<-dimnames(y)[[1]][cat1]) [1] "Geslacht" > (V2<-dimnames(y)[[1]][cat2]) [1] "I1" > (V3 <-dimnames(y)[[1]][cat3]) [1] "E1" > names(xdf)<-c('Response', 'Treatment_A', 'Treatment_B') > if(intercept == FALSE) (lmxdf<-lm(Response ~ Treatment_A * Treatment_B- 1, data = xdf) ) else (lmxdf<-lm(Response ~ Treatment_A * Treatment_B, data = xdf) ) Call: lm(formula = Response ~ Treatment_A * Treatment_B - 1, data = xdf) Coefficients: Treatment_A11 Treatment_A13 1.500e+00 3.000e+00 Treatment_A14 Treatment_A15 1.000e+00 1.000e+00 Treatment_A16 Treatment_A17 2.000e+00 1.500e+00 Treatment_A18 Treatment_A19 1.500e+00 1.000e+00 Treatment_A20 Treatment_A21 4.690e-17 2.000e+00 Treatment_A22 Treatment_A23 1.000e+00 1.500e+00 Treatment_A24 Treatment_A25 1.500e+00 1.500e+00 Treatment_A26 Treatment_A27 1.000e+00 2.000e+00 Treatment_A28 Treatment_A7 1.500e+00 2.500e+00 Treatment_A9 Treatment_B12 1.000e+00 -1.000e+00 Treatment_B13 Treatment_B15 -6.648e-16 -5.000e-01 Treatment_B17 Treatment_B18 -5.000e-01 -1.000e+00 Treatment_B19 Treatment_B20 1.000e+00 -1.500e+00 Treatment_B21 Treatment_B22 -1.000e+00 -1.500e+00 Treatment_B23 Treatment_B24 2.692e-16 -2.000e+00 Treatment_B25 Treatment_B26 -1.000e+00 -5.000e-01 Treatment_B27 Treatment_B28 8.089e-16 -1.000e+00 Treatment_A13:Treatment_B12 Treatment_A14:Treatment_B12 NA NA Treatment_A15:Treatment_B12 Treatment_A16:Treatment_B12 NA NA Treatment_A17:Treatment_B12 Treatment_A18:Treatment_B12 NA NA Treatment_A19:Treatment_B12 Treatment_A20:Treatment_B12 NA NA Treatment_A21:Treatment_B12 Treatment_A22:Treatment_B12 NA NA Treatment_A23:Treatment_B12 Treatment_A24:Treatment_B12 NA NA Treatment_A25:Treatment_B12 Treatment_A26:Treatment_B12 NA NA Treatment_A27:Treatment_B12 Treatment_A28:Treatment_B12 NA NA Treatment_A7:Treatment_B12 Treatment_A9:Treatment_B12 NA NA Treatment_A13:Treatment_B13 Treatment_A14:Treatment_B13 NA NA Treatment_A15:Treatment_B13 Treatment_A16:Treatment_B13 NA NA Treatment_A17:Treatment_B13 Treatment_A18:Treatment_B13 NA NA Treatment_A19:Treatment_B13 Treatment_A20:Treatment_B13 NA NA Treatment_A21:Treatment_B13 Treatment_A22:Treatment_B13 NA NA Treatment_A23:Treatment_B13 Treatment_A24:Treatment_B13 NA NA Treatment_A25:Treatment_B13 Treatment_A26:Treatment_B13 NA NA Treatment_A27:Treatment_B13 Treatment_A28:Treatment_B13 NA NA Treatment_A7:Treatment_B13 Treatment_A9:Treatment_B13 NA NA Treatment_A13:Treatment_B15 Treatment_A14:Treatment_B15 NA NA Treatment_A15:Treatment_B15 Treatment_A16:Treatment_B15 NA NA Treatment_A17:Treatment_B15 Treatment_A18:Treatment_B15 NA NA Treatment_A19:Treatment_B15 Treatment_A20:Treatment_B15 NA NA Treatment_A21:Treatment_B15 Treatment_A22:Treatment_B15 NA NA Treatment_A23:Treatment_B15 Treatment_A24:Treatment_B15 NA NA Treatment_A25:Treatment_B15 Treatment_A26:Treatment_B15 NA NA Treatment_A27:Treatment_B15 Treatment_A28:Treatment_B15 NA NA Treatment_A7:Treatment_B15 Treatment_A9:Treatment_B15 NA NA Treatment_A13:Treatment_B17 Treatment_A14:Treatment_B17 NA NA Treatment_A15:Treatment_B17 Treatment_A16:Treatment_B17 NA -5.000e-01 Treatment_A17:Treatment_B17 Treatment_A18:Treatment_B17 NA NA Treatment_A19:Treatment_B17 Treatment_A20:Treatment_B17 NA NA Treatment_A21:Treatment_B17 Treatment_A22:Treatment_B17 NA NA Treatment_A23:Treatment_B17 Treatment_A24:Treatment_B17 NA NA Treatment_A25:Treatment_B17 Treatment_A26:Treatment_B17 NA NA Treatment_A27:Treatment_B17 Treatment_A28:Treatment_B17 NA NA Treatment_A7:Treatment_B17 Treatment_A9:Treatment_B17 NA NA Treatment_A13:Treatment_B18 Treatment_A14:Treatment_B18 NA NA Treatment_A15:Treatment_B18 Treatment_A16:Treatment_B18 1.000e+00 -1.869e-15 Treatment_A17:Treatment_B18 Treatment_A18:Treatment_B18 NA -5.000e-01 Treatment_A19:Treatment_B18 Treatment_A20:Treatment_B18 NA 2.000e+00 Treatment_A21:Treatment_B18 Treatment_A22:Treatment_B18 NA NA Treatment_A23:Treatment_B18 Treatment_A24:Treatment_B18 NA NA Treatment_A25:Treatment_B18 Treatment_A26:Treatment_B18 NA NA Treatment_A27:Treatment_B18 Treatment_A28:Treatment_B18 NA NA Treatment_A7:Treatment_B18 Treatment_A9:Treatment_B18 NA NA Treatment_A13:Treatment_B19 Treatment_A14:Treatment_B19 NA -2.000e+00 Treatment_A15:Treatment_B19 Treatment_A16:Treatment_B19 NA -2.000e+00 Treatment_A17:Treatment_B19 Treatment_A18:Treatment_B19 -1.500e+00 NA Treatment_A19:Treatment_B19 Treatment_A20:Treatment_B19 -2.000e+00 NA Treatment_A21:Treatment_B19 Treatment_A22:Treatment_B19 NA NA Treatment_A23:Treatment_B19 Treatment_A24:Treatment_B19 NA NA Treatment_A25:Treatment_B19 Treatment_A26:Treatment_B19 NA NA Treatment_A27:Treatment_B19 Treatment_A28:Treatment_B19 NA NA Treatment_A7:Treatment_B19 Treatment_A9:Treatment_B19 NA NA Treatment_A13:Treatment_B20 Treatment_A14:Treatment_B20 -1.500e+00 NA Treatment_A15:Treatment_B20 Treatment_A16:Treatment_B20 1.000e+00 5.000e-01 Treatment_A17:Treatment_B20 Treatment_A18:Treatment_B20 5.000e-01 7.500e-01 Treatment_A19:Treatment_B20 Treatment_A20:Treatment_B20 1.000e+00 2.000e+00 Treatment_A21:Treatment_B20 Treatment_A22:Treatment_B20 -5.000e-01 NA Treatment_A23:Treatment_B20 Treatment_A24:Treatment_B20 NA NA Treatment_A25:Treatment_B20 Treatment_A26:Treatment_B20 NA NA Treatment_A27:Treatment_B20 Treatment_A28:Treatment_B20 NA NA Treatment_A7:Treatment_B20 Treatment_A9:Treatment_B20 NA NA Treatment_A13:Treatment_B21 Treatment_A14:Treatment_B21 NA NA Treatment_A15:Treatment_B21 Treatment_A16:Treatment_B21 NA -7.385e-16 Treatment_A17:Treatment_B21 Treatment_A18:Treatment_B21 NA 2.737e-15 Treatment_A19:Treatment_B21 Treatment_A20:Treatment_B21 1.000e+00 1.500e+00 Treatment_A21:Treatment_B21 Treatment_A22:Treatment_B21 NA 2.047e-15 Treatment_A23:Treatment_B21 Treatment_A24:Treatment_B21 5.000e-01 1.678e-15 Treatment_A25:Treatment_B21 Treatment_A26:Treatment_B21 NA NA Treatment_A27:Treatment_B21 Treatment_A28:Treatment_B21 NA NA Treatment_A7:Treatment_B21 Treatment_A9:Treatment_B21 NA NA Treatment_A13:Treatment_B22 Treatment_A14:Treatment_B22 NA NA Treatment_A15:Treatment_B22 Treatment_A16:Treatment_B22 NA NA Treatment_A17:Treatment_B22 Treatment_A18:Treatment_B22 2.009e-15 1.000e+00 Treatment_A19:Treatment_B22 Treatment_A20:Treatment_B22 1.500e+00 2.167e+00 Treatment_A21:Treatment_B22 Treatment_A22:Treatment_B22 -4.679e-16 NA Treatment_A23:Treatment_B22 Treatment_A24:Treatment_B22 5.000e-01 NA Treatment_A25:Treatment_B22 Treatment_A26:Treatment_B22 NA NA Treatment_A27:Treatment_B22 Treatment_A28:Treatment_B22 NA NA Treatment_A7:Treatment_B22 Treatment_A9:Treatment_B22 NA NA Treatment_A13:Treatment_B23 Treatment_A14:Treatment_B23 NA NA Treatment_A15:Treatment_B23 Treatment_A16:Treatment_B23 NA -1.500e+00 Treatment_A17:Treatment_B23 Treatment_A18:Treatment_B23 NA -5.000e-01 Treatment_A19:Treatment_B23 Treatment_A20:Treatment_B23 -5.000e-01 NA Treatment_A21:Treatment_B23 Treatment_A22:Treatment_B23 -1.667e+00 -2.500e-01 Treatment_A23:Treatment_B23 Treatment_A24:Treatment_B23 -1.000e+00 -1.167e+00 Treatment_A25:Treatment_B23 Treatment_A26:Treatment_B23 -7.500e-01 NA Treatment_A27:Treatment_B23 Treatment_A28:Treatment_B23 NA NA Treatment_A7:Treatment_B23 Treatment_A9:Treatment_B23 NA NA Treatment_A13:Treatment_B24 Treatment_A14:Treatment_B24 NA NA Treatment_A15:Treatment_B24 Treatment_A16:Treatment_B24 NA 1.000e+00 Treatment_A17:Treatment_B24 Treatment_A18:Treatment_B24 5.000e-01 5.000e-01 Treatment_A19:Treatment_B24 Treatment_A20:Treatment_B24 NA 3.000e+00 Treatment_A21:Treatment_B24 Treatment_A22:Treatment_B24 6.667e-01 1.667e+00 Treatment_A23:Treatment_B24 Treatment_A24:Treatment_B24 1.500e+00 5.000e-01 Treatment_A25:Treatment_B24 Treatment_A26:Treatment_B24 5.000e-01 2.000e+00 Treatment_A27:Treatment_B24 Treatment_A28:Treatment_B24 NA NA Treatment_A7:Treatment_B24 Treatment_A9:Treatment_B24 NA NA Treatment_A13:Treatment_B25 Treatment_A14:Treatment_B25 NA NA Treatment_A15:Treatment_B25 Treatment_A16:Treatment_B25 NA NA Treatment_A17:Treatment_B25 Treatment_A18:Treatment_B25 NA 5.000e-01 Treatment_A19:Treatment_B25 Treatment_A20:Treatment_B25 1.000e+00 1.667e+00 Treatment_A21:Treatment_B25 Treatment_A22:Treatment_B25 1.588e-15 1.000e+00 Treatment_A23:Treatment_B25 Treatment_A24:Treatment_B25 -5.000e-01 5.000e-01 Treatment_A25:Treatment_B25 Treatment_A26:Treatment_B25 -5.000e-01 NA Treatment_A27:Treatment_B25 Treatment_A28:Treatment_B25 NA NA Treatment_A7:Treatment_B25 Treatment_A9:Treatment_B25 NA NA Treatment_A13:Treatment_B26 Treatment_A14:Treatment_B26 NA NA Treatment_A15:Treatment_B26 Treatment_A16:Treatment_B26 NA NA Treatment_A17:Treatment_B26 Treatment_A18:Treatment_B26 NA NA Treatment_A19:Treatment_B26 Treatment_A20:Treatment_B26 NA 1.500e+00 Treatment_A21:Treatment_B26 Treatment_A22:Treatment_B26 -1.000e+00 5.000e-01 Treatment_A23:Treatment_B26 Treatment_A24:Treatment_B26 -5.000e-01 NA Treatment_A25:Treatment_B26 Treatment_A26:Treatment_B26 NA NA Treatment_A27:Treatment_B26 Treatment_A28:Treatment_B26 NA NA Treatment_A7:Treatment_B26 Treatment_A9:Treatment_B26 NA NA Treatment_A13:Treatment_B27 Treatment_A14:Treatment_B27 NA NA Treatment_A15:Treatment_B27 Treatment_A16:Treatment_B27 NA NA Treatment_A17:Treatment_B27 Treatment_A18:Treatment_B27 NA NA Treatment_A19:Treatment_B27 Treatment_A20:Treatment_B27 NA NA Treatment_A21:Treatment_B27 Treatment_A22:Treatment_B27 NA -5.000e-01 Treatment_A23:Treatment_B27 Treatment_A24:Treatment_B27 NA -1.500e+00 Treatment_A25:Treatment_B27 Treatment_A26:Treatment_B27 -8.333e-01 NA Treatment_A27:Treatment_B27 Treatment_A28:Treatment_B27 NA NA Treatment_A7:Treatment_B27 Treatment_A9:Treatment_B27 NA NA Treatment_A13:Treatment_B28 Treatment_A14:Treatment_B28 NA NA Treatment_A15:Treatment_B28 Treatment_A16:Treatment_B28 NA NA Treatment_A17:Treatment_B28 Treatment_A18:Treatment_B28 NA NA Treatment_A19:Treatment_B28 Treatment_A20:Treatment_B28 NA NA Treatment_A21:Treatment_B28 Treatment_A22:Treatment_B28 NA NA Treatment_A23:Treatment_B28 Treatment_A24:Treatment_B28 NA NA Treatment_A25:Treatment_B28 Treatment_A26:Treatment_B28 NA NA Treatment_A27:Treatment_B28 Treatment_A28:Treatment_B28 NA NA Treatment_A7:Treatment_B28 Treatment_A9:Treatment_B28 NA NA > (aov.xdf<-aov(lmxdf) ) Call: aov(formula = lmxdf) Terms: Treatment_A Treatment_B Treatment_A:Treatment_B Residuals Sum of Squares 65.40724 3.46258 13.71351 17.41667 Deg. of Freedom 19 15 63 65 Residual standard error: 0.5176376 207 out of 304 effects not estimable Estimated effects may be unbalanced > (anova.xdf<-anova(lmxdf) ) Analysis of Variance Table Response: Response Df Sum Sq Mean Sq F value Pr(>F) Treatment_A 19 65.407 3.4425 12.8476 2.63e-15 *** Treatment_B 15 3.463 0.2308 0.8615 0.6082 Treatment_A:Treatment_B 63 13.714 0.2177 0.8124 0.7954 Residuals 65 17.417 0.2679 --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 > > #Note: the /var/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/rcomp/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, lmxdf$call['formula'],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="/var/fisher/rcomp/tmp/1f8tz1356192091.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) > for(i in 1 : length(rownames(anova.xdf))-1){ + a<-table.row.start(a) + a<-table.element(a,rownames(anova.xdf)[i] ,,TRUE) + a<-table.element(a, anova.xdf$Df[1],,FALSE) + a<-table.element(a, round(anova.xdf$'Sum Sq'[i], digits=3),,FALSE) + a<-table.element(a, round(anova.xdf$'Mean Sq'[i], digits=3),,FALSE) + a<-table.element(a, round(anova.xdf$'F value'[i], digits=3),,FALSE) + a<-table.element(a, round(anova.xdf$'Pr(>F)'[i], 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'[i+1],,FALSE) > a<-table.element(a, round(anova.xdf$'Sum Sq'[i+1], digits=3),,FALSE) > a<-table.element(a, round(anova.xdf$'Mean Sq'[i+1], 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="/var/fisher/rcomp/tmp/29eto1356192091.tab") > postscript(file="/var/fisher/rcomp/tmp/3gifq1356192091.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > boxplot(Response ~ Treatment_A + Treatment_B, data=xdf, xlab=V2, ylab=V1, main='Boxplots of ANOVA Groups') > dev.off() null device 1 > postscript(file="/var/fisher/rcomp/tmp/4jq3w1356192091.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > xdf2 <- xdf # to preserve xdf make copy for function > names(xdf2) <- c(V1, V2, V3) > plot.design(xdf2, main='Design Plot of Group Means') > dev.off() null device 1 > postscript(file="/var/fisher/rcomp/tmp/5tacx1356192091.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > interaction.plot(xdf$Treatment_A, xdf$Treatment_B, xdf$Response, xlab=V2, ylab=V1, trace.label=V3, main='Possible Interactions Between Anova Groups') > dev.off() null device 1 > if(intercept==TRUE){ + thsd<-TukeyHSD(aov.xdf) + names(thsd) <- c(V2, V3, paste(V2, ':', V3, sep='')) + postscript(file="/var/fisher/rcomp/tmp/6sbgc1356192091.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) + layout(matrix(c(1,2,3,3), 2,2)) + plot(thsd, las=1) + dev.off() + } > if(intercept==TRUE){ + ntables<-length(names(thsd)) + 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(nt in 1:ntables){ + for(i in 1:length(rownames(thsd[[nt]]))){ + a<-table.row.start(a) + a<-table.element(a,rownames(thsd[[nt]])[i], 1, TRUE) + for(j in 1:4){ + a<-table.element(a,round(thsd[[nt]][i,j], digits=3), 1, FALSE) + } + a<-table.row.end(a) + } + } # end nt + a<-table.end(a) + table.save(a,file="/var/fisher/rcomp/tmp/7hjvi1356192091.tab") + }#end if hsd tables > 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="/var/fisher/rcomp/tmp/8tj341356192091.tab") + } > library(car) Loading required package: MASS Loading required package: nnet > lt.lmxdf<-levene.test(lmxdf) Warning message: 'levene.test' is deprecated. Use 'leveneTest' instead. See help("Deprecated") and help("car-deprecated"). > 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="/var/fisher/rcomp/tmp/94f0i1356192091.tab") > > try(system("convert tmp/3gifq1356192091.ps tmp/3gifq1356192091.png",intern=TRUE)) character(0) > try(system("convert tmp/4jq3w1356192091.ps tmp/4jq3w1356192091.png",intern=TRUE)) character(0) > try(system("convert tmp/5tacx1356192091.ps tmp/5tacx1356192091.png",intern=TRUE)) character(0) > try(system("convert tmp/6sbgc1356192091.ps tmp/6sbgc1356192091.png",intern=TRUE)) convert: unable to open image `tmp/6sbgc1356192091.ps': @ error/blob.c/OpenBlob/2587. convert: missing an image filename `tmp/6sbgc1356192091.png' @ error/convert.c/ConvertImageCommand/3011. character(0) attr(,"status") [1] 1 Warning message: running command 'convert tmp/6sbgc1356192091.ps tmp/6sbgc1356192091.png' had status 1 > > > proc.time() user system elapsed 2.410 0.719 3.156