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(2 + ,41 + ,38 + ,14 + ,12 + ,2 + ,39 + ,32 + ,18 + ,11 + ,2 + ,30 + ,35 + ,11 + ,14 + ,1 + ,31 + ,33 + ,12 + ,12 + ,2 + ,34 + ,37 + ,16 + ,21 + ,2 + ,35 + ,29 + ,18 + ,12 + ,2 + ,39 + ,31 + ,14 + ,22 + ,2 + ,34 + ,36 + ,14 + ,11 + ,2 + ,36 + ,35 + ,15 + ,10 + ,2 + ,37 + ,38 + ,15 + ,13 + ,1 + ,38 + ,31 + ,17 + ,10 + ,2 + ,36 + ,34 + ,19 + ,8 + ,1 + ,38 + ,35 + ,10 + ,15 + ,2 + ,39 + ,38 + ,16 + ,14 + ,2 + ,33 + ,37 + ,18 + ,10 + ,1 + ,32 + ,33 + ,14 + ,14 + ,1 + ,36 + ,32 + ,14 + ,14 + ,2 + ,38 + ,38 + ,17 + ,11 + ,1 + ,39 + ,38 + ,14 + ,10 + ,2 + ,32 + ,32 + ,16 + ,13 + ,1 + ,32 + ,33 + ,18 + ,7 + ,2 + ,31 + ,31 + ,11 + ,14 + ,2 + ,39 + ,38 + ,14 + ,12 + ,2 + ,37 + ,39 + ,12 + ,14 + ,1 + ,39 + ,32 + ,17 + ,11 + ,2 + ,41 + ,32 + ,9 + ,9 + ,1 + ,36 + ,35 + ,16 + ,11 + ,2 + ,33 + ,37 + ,14 + ,15 + ,2 + ,33 + ,33 + ,15 + ,14 + ,1 + ,34 + ,33 + ,11 + ,13 + ,2 + ,31 + ,28 + ,16 + ,9 + ,1 + ,27 + ,32 + ,13 + ,15 + ,2 + ,37 + ,31 + ,17 + ,10 + ,2 + ,34 + ,37 + ,15 + ,11 + ,1 + ,34 + ,30 + ,14 + ,13 + ,1 + ,32 + ,33 + ,16 + ,8 + ,1 + ,29 + ,31 + ,9 + ,20 + ,1 + ,36 + ,33 + ,15 + ,12 + ,2 + ,29 + ,31 + ,17 + ,10 + ,1 + ,35 + ,33 + ,13 + ,10 + ,1 + ,37 + ,32 + ,15 + ,9 + ,2 + ,34 + ,33 + ,16 + ,14 + ,1 + ,38 + ,32 + ,16 + ,8 + ,1 + ,35 + ,33 + ,12 + ,14 + ,2 + ,38 + ,28 + ,12 + ,11 + ,2 + ,37 + ,35 + ,11 + ,13 + ,2 + ,38 + ,39 + ,15 + ,9 + ,2 + ,33 + ,34 + ,15 + ,11 + ,2 + ,36 + ,38 + ,17 + ,15 + ,1 + ,38 + ,32 + ,13 + ,11 + ,2 + ,32 + ,38 + ,16 + ,10 + ,1 + ,32 + ,30 + ,14 + ,14 + ,1 + ,32 + ,33 + ,11 + ,18 + ,2 + ,34 + ,38 + ,12 + ,14 + ,1 + ,32 + ,32 + ,12 + ,11 + ,2 + ,37 + ,32 + ,15 + ,12 + ,2 + ,39 + ,34 + ,16 + ,13 + ,2 + ,29 + ,34 + ,15 + ,9 + ,1 + ,37 + ,36 + ,12 + ,10 + ,2 + ,35 + ,34 + ,12 + ,15 + ,1 + ,30 + ,28 + ,8 + ,20 + ,1 + ,38 + ,34 + ,13 + ,12 + ,2 + ,34 + ,35 + ,11 + ,12 + ,2 + ,31 + ,35 + ,14 + ,14 + ,2 + ,34 + ,31 + ,15 + ,13 + ,1 + ,35 + ,37 + ,10 + ,11 + ,2 + ,36 + ,35 + ,11 + ,17 + ,1 + ,30 + ,27 + ,12 + ,12 + ,2 + ,39 + ,40 + ,15 + ,13 + ,1 + ,35 + ,37 + ,15 + ,14 + ,1 + ,38 + ,36 + ,14 + ,13 + ,2 + ,31 + ,38 + ,16 + ,15 + ,2 + ,34 + ,39 + ,15 + ,13 + ,1 + ,38 + ,41 + ,15 + ,10 + ,1 + ,34 + ,27 + ,13 + ,11 + ,2 + ,39 + ,30 + ,12 + ,19 + ,2 + ,37 + ,37 + ,17 + ,13 + ,2 + ,34 + ,31 + ,13 + ,17 + ,1 + ,28 + ,31 + ,15 + ,13 + ,1 + ,37 + ,27 + ,13 + ,9 + ,1 + ,33 + ,36 + ,15 + ,11 + ,1 + ,37 + ,38 + ,16 + ,10 + ,2 + ,35 + ,37 + ,15 + ,9 + ,1 + ,37 + ,33 + ,16 + ,12 + ,2 + ,32 + ,34 + ,15 + ,12 + ,2 + ,33 + ,31 + ,14 + ,13 + ,1 + ,38 + ,39 + ,15 + ,13 + ,2 + ,33 + ,34 + ,14 + ,12 + ,2 + ,29 + ,32 + ,13 + ,15 + ,2 + ,33 + ,33 + ,7 + ,22 + ,2 + ,31 + ,36 + ,17 + ,13 + ,2 + ,36 + ,32 + ,13 + ,15 + ,2 + ,35 + ,41 + ,15 + ,13 + ,2 + ,32 + ,28 + ,14 + ,15 + ,2 + ,29 + ,30 + ,13 + ,10 + ,2 + ,39 + ,36 + ,16 + ,11 + ,2 + ,37 + ,35 + ,12 + ,16 + ,2 + ,35 + ,31 + ,14 + ,11 + ,1 + ,37 + ,34 + ,17 + ,11 + ,1 + ,32 + ,36 + ,15 + ,10 + ,2 + ,38 + ,36 + ,17 + ,10 + ,1 + ,37 + ,35 + ,12 + ,16 + ,2 + ,36 + ,37 + ,16 + ,12 + ,1 + ,32 + ,28 + ,11 + ,11 + ,2 + ,33 + ,39 + ,15 + ,16 + ,1 + ,40 + ,32 + ,9 + ,19 + ,2 + ,38 + ,35 + ,16 + ,11 + ,1 + ,41 + ,39 + ,15 + ,16 + ,1 + ,36 + ,35 + ,10 + ,15 + ,2 + ,43 + ,42 + ,10 + ,24 + ,2 + ,30 + ,34 + ,15 + ,14 + ,2 + ,31 + ,33 + ,11 + ,15 + ,2 + ,32 + ,41 + ,13 + ,11 + ,1 + ,32 + ,33 + ,14 + ,15 + ,2 + ,37 + ,34 + ,18 + ,12 + ,1 + ,37 + ,32 + ,16 + ,10 + ,2 + ,33 + ,40 + ,14 + ,14 + ,2 + ,34 + ,40 + ,14 + ,13 + ,2 + ,33 + ,35 + ,14 + ,9 + ,2 + ,38 + ,36 + ,14 + ,15 + ,2 + ,33 + ,37 + ,12 + ,15 + ,2 + ,31 + ,27 + ,14 + ,14 + ,2 + ,38 + ,39 + ,15 + ,11 + ,2 + ,37 + ,38 + ,15 + ,8 + ,2 + ,33 + ,31 + ,15 + ,11 + ,2 + ,31 + ,33 + ,13 + ,11 + ,1 + ,39 + ,32 + ,17 + ,8 + ,2 + ,44 + ,39 + ,17 + ,10 + ,2 + ,33 + ,36 + ,19 + ,11 + ,2 + ,35 + ,33 + ,15 + ,13 + ,1 + ,32 + ,33 + ,13 + ,11 + ,1 + ,28 + ,32 + ,9 + ,20 + ,2 + ,40 + ,37 + ,15 + ,10 + ,1 + ,27 + ,30 + ,15 + ,15 + ,1 + ,37 + ,38 + ,15 + ,12 + ,2 + ,32 + ,29 + ,16 + ,14 + ,1 + ,28 + ,22 + ,11 + ,23 + ,1 + ,34 + ,35 + ,14 + ,14 + ,2 + ,30 + ,35 + ,11 + ,16 + ,2 + ,35 + ,34 + ,15 + ,11 + ,1 + ,31 + ,35 + ,13 + ,12 + ,2 + ,32 + ,34 + ,15 + ,10 + ,1 + ,30 + ,34 + ,16 + ,14 + ,2 + ,30 + ,35 + ,14 + ,12 + ,1 + ,31 + ,23 + ,15 + ,12 + ,2 + ,40 + ,31 + ,16 + ,11 + ,2 + ,32 + ,27 + ,16 + ,12 + ,1 + ,36 + ,36 + ,11 + ,13 + ,1 + ,32 + ,31 + ,12 + ,11 + ,1 + ,35 + ,32 + ,9 + ,19 + ,2 + ,38 + ,39 + ,16 + ,12 + ,2 + ,42 + ,37 + ,13 + ,17 + ,1 + ,34 + ,38 + ,16 + ,9 + ,2 + ,35 + ,39 + ,12 + ,12 + ,2 + ,35 + ,34 + ,9 + ,19 + ,2 + ,33 + ,31 + ,13 + ,18 + ,2 + ,36 + ,32 + ,13 + ,15 + ,2 + ,32 + ,37 + ,14 + ,14 + ,2 + ,33 + ,36 + ,19 + ,11 + ,2 + ,34 + ,32 + ,13 + ,9 + ,2 + ,32 + ,35 + ,12 + ,18 + ,2 + ,34 + ,36 + ,13 + ,16) + ,dim=c(5 + ,162) + ,dimnames=list(c('Geslacht' + ,'Connected' + ,'Separate' + ,'Happiness' + ,'Depression ') + ,1:162)) > y <- array(NA,dim=c(5,162),dimnames=list(c('Geslacht','Connected','Separate','Happiness','Depression '),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 = 'TRUE' > par3 = '3' > par2 = '2' > par1 = '1' > ylab = 'Y Variable Name' > xlab = 'X Variable Name' > main = 'Title Goes Here' > par4 <- 'TRUE' > 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] "Connected" > (V3 <-dimnames(y)[[1]][cat3]) [1] "Separate" > 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, data = xdf) Coefficients: (Intercept) Treatment_A28 1.000e+00 6.977e-16 Treatment_A29 Treatment_A30 2.000e+00 2.250e+00 Treatment_A31 Treatment_A32 1.000e+00 2.750e+00 Treatment_A33 Treatment_A34 2.000e+00 2.000e+00 Treatment_A35 Treatment_A36 2.750e+00 1.000e+00 Treatment_A37 Treatment_A38 2.000e+00 1.750e+00 Treatment_A39 Treatment_A40 2.000e+00 2.000e+00 Treatment_A41 Treatment_A42 1.000e+00 2.000e+00 Treatment_A43 Treatment_A44 1.000e+00 2.000e+00 Treatment_B23 Treatment_B27 -1.000e+00 -2.000e+00 Treatment_B28 Treatment_B29 -7.500e-01 -1.750e+00 Treatment_B30 Treatment_B31 2.029e-15 -1.000e+00 Treatment_B32 Treatment_B33 7.181e-16 -2.000e+00 Treatment_B34 Treatment_B35 -1.000e+00 -1.250e+00 Treatment_B36 Treatment_B37 -1.000e+00 -1.000e+00 Treatment_B38 Treatment_B39 -1.177e-15 -1.000e+00 Treatment_B40 Treatment_B41 -1.000e+00 -1.750e+00 Treatment_B42 Treatment_A28:Treatment_B23 NA NA Treatment_A29:Treatment_B23 Treatment_A30:Treatment_B23 NA NA Treatment_A31:Treatment_B23 Treatment_A32:Treatment_B23 NA NA Treatment_A33:Treatment_B23 Treatment_A34:Treatment_B23 NA NA Treatment_A35:Treatment_B23 Treatment_A36:Treatment_B23 NA NA Treatment_A37:Treatment_B23 Treatment_A38:Treatment_B23 NA NA Treatment_A39:Treatment_B23 Treatment_A40:Treatment_B23 NA NA Treatment_A41:Treatment_B23 Treatment_A42:Treatment_B23 NA NA Treatment_A43:Treatment_B23 Treatment_A44:Treatment_B23 NA NA Treatment_A28:Treatment_B27 Treatment_A29:Treatment_B27 NA NA Treatment_A30:Treatment_B27 Treatment_A31:Treatment_B27 -2.500e-01 2.000e+00 Treatment_A32:Treatment_B27 Treatment_A33:Treatment_B27 2.500e-01 NA Treatment_A34:Treatment_B27 Treatment_A35:Treatment_B27 1.073e-15 NA Treatment_A36:Treatment_B27 Treatment_A37:Treatment_B27 NA NA Treatment_A38:Treatment_B27 Treatment_A39:Treatment_B27 NA NA Treatment_A40:Treatment_B27 Treatment_A41:Treatment_B27 NA NA Treatment_A42:Treatment_B27 Treatment_A43:Treatment_B27 NA NA Treatment_A44:Treatment_B27 Treatment_A28:Treatment_B28 NA NA Treatment_A29:Treatment_B28 Treatment_A30:Treatment_B28 NA -1.500e+00 Treatment_A31:Treatment_B28 Treatment_A32:Treatment_B28 7.500e-01 -1.500e+00 Treatment_A33:Treatment_B28 Treatment_A34:Treatment_B28 NA NA Treatment_A35:Treatment_B28 Treatment_A36:Treatment_B28 NA NA Treatment_A37:Treatment_B28 Treatment_A38:Treatment_B28 NA NA Treatment_A39:Treatment_B28 Treatment_A40:Treatment_B28 NA NA Treatment_A41:Treatment_B28 Treatment_A42:Treatment_B28 NA NA Treatment_A43:Treatment_B28 Treatment_A44:Treatment_B28 NA NA Treatment_A28:Treatment_B29 Treatment_A29:Treatment_B29 NA NA Treatment_A30:Treatment_B29 Treatment_A31:Treatment_B29 NA NA Treatment_A32:Treatment_B29 Treatment_A33:Treatment_B29 6.730e-16 NA Treatment_A34:Treatment_B29 Treatment_A35:Treatment_B29 NA NA Treatment_A36:Treatment_B29 Treatment_A37:Treatment_B29 NA NA Treatment_A38:Treatment_B29 Treatment_A39:Treatment_B29 NA NA Treatment_A40:Treatment_B29 Treatment_A41:Treatment_B29 NA NA Treatment_A42:Treatment_B29 Treatment_A43:Treatment_B29 NA NA Treatment_A44:Treatment_B29 Treatment_A28:Treatment_B30 NA NA Treatment_A29:Treatment_B30 Treatment_A30:Treatment_B30 -1.000e+00 NA Treatment_A31:Treatment_B30 Treatment_A32:Treatment_B30 NA -2.750e+00 Treatment_A33:Treatment_B30 Treatment_A34:Treatment_B30 NA -2.000e+00 Treatment_A35:Treatment_B30 Treatment_A36:Treatment_B30 NA NA Treatment_A37:Treatment_B30 Treatment_A38:Treatment_B30 NA NA Treatment_A39:Treatment_B30 Treatment_A40:Treatment_B30 -1.000e+00 NA Treatment_A41:Treatment_B30 Treatment_A42:Treatment_B30 NA NA Treatment_A43:Treatment_B30 Treatment_A44:Treatment_B30 NA NA Treatment_A28:Treatment_B31 Treatment_A29:Treatment_B31 1.000e+00 -5.000e-01 Treatment_A30:Treatment_B31 Treatment_A31:Treatment_B31 NA 1.000e+00 Treatment_A32:Treatment_B31 Treatment_A33:Treatment_B31 -1.750e+00 1.268e-15 Treatment_A34:Treatment_B31 Treatment_A35:Treatment_B31 1.038e-15 -7.500e-01 Treatment_A36:Treatment_B31 Treatment_A37:Treatment_B31 NA 1.366e-16 Treatment_A38:Treatment_B31 Treatment_A39:Treatment_B31 -7.500e-01 3.168e-15 Treatment_A40:Treatment_B31 Treatment_A41:Treatment_B31 NA NA Treatment_A42:Treatment_B31 Treatment_A43:Treatment_B31 NA NA Treatment_A44:Treatment_B31 Treatment_A28:Treatment_B32 NA NA Treatment_A29:Treatment_B32 Treatment_A30:Treatment_B32 -1.000e+00 NA Treatment_A31:Treatment_B32 Treatment_A32:Treatment_B32 NA -2.250e+00 Treatment_A33:Treatment_B32 Treatment_A34:Treatment_B32 NA -1.000e+00 Treatment_A35:Treatment_B32 Treatment_A36:Treatment_B32 -2.750e+00 -3.333e-01 Treatment_A37:Treatment_B32 Treatment_A38:Treatment_B32 -1.667e+00 -1.750e+00 Treatment_A39:Treatment_B32 Treatment_A40:Treatment_B32 -1.667e+00 -2.000e+00 Treatment_A41:Treatment_B32 Treatment_A42:Treatment_B32 NA NA Treatment_A43:Treatment_B32 Treatment_A44:Treatment_B32 NA NA Treatment_A28:Treatment_B33 Treatment_A29:Treatment_B33 NA NA Treatment_A30:Treatment_B33 Treatment_A31:Treatment_B33 NA 1.667e+00 Treatment_A32:Treatment_B33 Treatment_A33:Treatment_B33 -7.500e-01 1.000e+00 Treatment_A34:Treatment_B33 Treatment_A35:Treatment_B33 5.000e-01 -4.167e-01 Treatment_A36:Treatment_B33 Treatment_A37:Treatment_B33 1.000e+00 NA Treatment_A38:Treatment_B33 Treatment_A39:Treatment_B33 NA NA Treatment_A40:Treatment_B33 Treatment_A41:Treatment_B33 NA NA Treatment_A42:Treatment_B33 Treatment_A43:Treatment_B33 NA NA Treatment_A44:Treatment_B33 Treatment_A28:Treatment_B34 NA NA Treatment_A29:Treatment_B34 Treatment_A30:Treatment_B34 NA -7.500e-01 Treatment_A31:Treatment_B34 Treatment_A32:Treatment_B34 NA -7.500e-01 Treatment_A33:Treatment_B34 Treatment_A34:Treatment_B34 2.659e-16 NA Treatment_A35:Treatment_B34 Treatment_A36:Treatment_B34 -7.500e-01 1.000e+00 Treatment_A37:Treatment_B34 Treatment_A38:Treatment_B34 -5.000e-01 -7.500e-01 Treatment_A39:Treatment_B34 Treatment_A40:Treatment_B34 NA NA Treatment_A41:Treatment_B34 Treatment_A42:Treatment_B34 NA NA Treatment_A43:Treatment_B34 Treatment_A44:Treatment_B34 NA NA Treatment_A28:Treatment_B35 Treatment_A29:Treatment_B35 NA NA Treatment_A30:Treatment_B35 Treatment_A31:Treatment_B35 NA 7.500e-01 Treatment_A32:Treatment_B35 Treatment_A33:Treatment_B35 -5.000e-01 2.500e-01 Treatment_A34:Treatment_B35 Treatment_A35:Treatment_B35 -2.500e-01 NA Treatment_A36:Treatment_B35 Treatment_A37:Treatment_B35 7.500e-01 -8.333e-02 Treatment_A38:Treatment_B35 Treatment_A39:Treatment_B35 NA NA Treatment_A40:Treatment_B35 Treatment_A41:Treatment_B35 NA NA Treatment_A42:Treatment_B35 Treatment_A43:Treatment_B35 NA NA Treatment_A44:Treatment_B35 Treatment_A28:Treatment_B36 NA NA Treatment_A29:Treatment_B36 Treatment_A30:Treatment_B36 NA NA Treatment_A31:Treatment_B36 Treatment_A32:Treatment_B36 1.000e+00 -1.750e+00 Treatment_A33:Treatment_B36 Treatment_A34:Treatment_B36 -3.333e-01 5.383e-16 Treatment_A35:Treatment_B36 Treatment_A36:Treatment_B36 NA -3.176e-15 Treatment_A37:Treatment_B36 Treatment_A38:Treatment_B36 -1.000e+00 -8.333e-02 Treatment_A39:Treatment_B36 Treatment_A40:Treatment_B36 NA NA Treatment_A41:Treatment_B36 Treatment_A42:Treatment_B36 NA NA Treatment_A43:Treatment_B36 Treatment_A44:Treatment_B36 NA NA Treatment_A28:Treatment_B37 Treatment_A29:Treatment_B37 NA NA Treatment_A30:Treatment_B37 Treatment_A31:Treatment_B37 NA NA Treatment_A32:Treatment_B37 Treatment_A33:Treatment_B37 -7.500e-01 3.446e-16 Treatment_A34:Treatment_B37 Treatment_A35:Treatment_B37 1.955e-15 -1.417e+00 Treatment_A36:Treatment_B37 Treatment_A37:Treatment_B37 1.000e+00 NA Treatment_A38:Treatment_B37 Treatment_A39:Treatment_B37 NA NA Treatment_A40:Treatment_B37 Treatment_A41:Treatment_B37 NA NA Treatment_A42:Treatment_B37 Treatment_A43:Treatment_B37 NA NA Treatment_A44:Treatment_B37 Treatment_A28:Treatment_B38 NA NA Treatment_A29:Treatment_B38 Treatment_A30:Treatment_B38 NA NA Treatment_A31:Treatment_B38 Treatment_A32:Treatment_B38 NA -1.750e+00 Treatment_A33:Treatment_B38 Treatment_A34:Treatment_B38 NA -1.500e+00 Treatment_A35:Treatment_B38 Treatment_A36:Treatment_B38 NA NA Treatment_A37:Treatment_B38 Treatment_A38:Treatment_B38 -1.500e+00 -7.500e-01 Treatment_A39:Treatment_B38 Treatment_A40:Treatment_B38 -1.333e+00 NA Treatment_A41:Treatment_B38 Treatment_A42:Treatment_B38 NA NA Treatment_A43:Treatment_B38 Treatment_A44:Treatment_B38 NA NA Treatment_A28:Treatment_B39 Treatment_A29:Treatment_B39 NA NA Treatment_A30:Treatment_B39 Treatment_A31:Treatment_B39 NA NA Treatment_A32:Treatment_B39 Treatment_A33:Treatment_B39 NA 1.177e-16 Treatment_A34:Treatment_B39 Treatment_A35:Treatment_B39 NA -7.500e-01 Treatment_A36:Treatment_B39 Treatment_A37:Treatment_B39 NA NA Treatment_A38:Treatment_B39 Treatment_A39:Treatment_B39 NA NA Treatment_A40:Treatment_B39 Treatment_A41:Treatment_B39 NA NA Treatment_A42:Treatment_B39 Treatment_A43:Treatment_B39 NA NA Treatment_A44:Treatment_B39 Treatment_A28:Treatment_B40 NA NA Treatment_A29:Treatment_B40 Treatment_A30:Treatment_B40 NA NA Treatment_A31:Treatment_B40 Treatment_A32:Treatment_B40 NA NA Treatment_A33:Treatment_B40 Treatment_A34:Treatment_B40 NA NA Treatment_A35:Treatment_B40 Treatment_A36:Treatment_B40 NA NA Treatment_A37:Treatment_B40 Treatment_A38:Treatment_B40 NA NA Treatment_A39:Treatment_B40 Treatment_A40:Treatment_B40 NA NA Treatment_A41:Treatment_B40 Treatment_A42:Treatment_B40 NA NA Treatment_A43:Treatment_B40 Treatment_A44:Treatment_B40 NA NA Treatment_A28:Treatment_B41 Treatment_A29:Treatment_B41 NA NA Treatment_A30:Treatment_B41 Treatment_A31:Treatment_B41 NA NA Treatment_A32:Treatment_B41 Treatment_A33:Treatment_B41 NA NA Treatment_A34:Treatment_B41 Treatment_A35:Treatment_B41 NA NA Treatment_A36:Treatment_B41 Treatment_A37:Treatment_B41 NA NA Treatment_A38:Treatment_B41 Treatment_A39:Treatment_B41 NA NA Treatment_A40:Treatment_B41 Treatment_A41:Treatment_B41 NA NA Treatment_A42:Treatment_B41 Treatment_A43:Treatment_B41 NA NA Treatment_A44:Treatment_B41 Treatment_A28:Treatment_B42 NA NA Treatment_A29:Treatment_B42 Treatment_A30:Treatment_B42 NA NA Treatment_A31:Treatment_B42 Treatment_A32:Treatment_B42 NA NA Treatment_A33:Treatment_B42 Treatment_A34:Treatment_B42 NA NA Treatment_A35:Treatment_B42 Treatment_A36:Treatment_B42 NA NA Treatment_A37:Treatment_B42 Treatment_A38:Treatment_B42 NA NA Treatment_A39:Treatment_B42 Treatment_A40:Treatment_B42 NA NA Treatment_A41:Treatment_B42 Treatment_A42:Treatment_B42 NA NA Treatment_A43:Treatment_B42 Treatment_A44:Treatment_B42 NA NA > (aov.xdf<-aov(lmxdf) ) Call: aov(formula = lmxdf) Terms: Treatment_A Treatment_B Treatment_A:Treatment_B Residuals Sum of Squares 5.483649 5.165751 12.964797 14.416667 Deg. of Freedom 17 16 69 59 Residual standard error: 0.494318 221 out of 324 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 17 5.4836 0.32257 1.3201 0.2126 Treatment_B 16 5.1658 0.32286 1.3213 0.2154 Treatment_A:Treatment_B 69 12.9648 0.18790 0.7690 0.8536 Residuals 59 14.4167 0.24435 > > #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/1ahs01355420041.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/29p0l1355420041.tab") > postscript(file="/var/fisher/rcomp/tmp/37mar1355420041.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/4955b1355420041.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/582481355420041.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/6v56l1355420041.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() + } null device 1 > 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/7mke71355420041.tab") + }#end if hsd tables Terminated