R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing 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(66.67 + ,70.95 + ,66.33 + ,70.61 + ,64.33 + ,68.61 + ,64 + ,68.28 + ,63.33 + ,67.61 + ,61.33 + ,65.61 + ,64.67 + ,68.95 + ,63 + ,67.28 + ,60.67 + ,64.95 + ,63.67 + ,67.95 + ,60.67 + ,64.95 + ,61.67 + ,65.95 + ,62.33 + ,66.61 + ,60.33 + ,64.61 + ,59.67 + ,63.95 + ,60.33 + ,64.61 + ,59.33 + ,63.61 + ,58.67 + ,62.95 + ,58.67 + ,62.95 + ,59.33 + ,63.61 + ,57.33 + ,61.61 + ,59.33 + ,63.61 + ,56 + ,60.28 + ,53.67 + ,57.95 + ,58.67 + ,62.95 + ,49.33 + ,53.61 + ,71.33 + ,75.61 + ,70.33 + ,74.61 + ,69 + ,73.28 + ,66 + ,70.28 + ,66 + ,70.28 + ,63.33 + ,67.61 + ,65.33 + ,69.61 + ,64.33 + ,68.61 + ,64 + ,68.28 + ,61.67 + ,65.95 + ,63.67 + ,67.95 + ,64.67 + ,68.95 + ,61.67 + ,65.95 + ,62 + ,66.28 + ,61.33 + ,65.61 + ,63.67 + ,67.95 + ,61.33 + ,65.61 + ,62.33 + ,66.61 + ,59.67 + ,63.95 + ,59.33 + ,63.61 + ,61.67 + ,65.95 + ,58.67 + ,62.95 + ,58 + ,62.28 + ,56.67 + ,60.95 + ,59.67 + ,63.95 + ,58 + ,62.28 + ,57 + ,61.28 + ,57.67 + ,61.95 + ,58.67 + ,62.95 + ,55.33 + ,59.61 + ,56 + ,60.28 + ,55.67 + ,59.95 + ,53.33 + ,57.61 + ,53.67 + ,57.95 + ,51 + ,55.28 + ,47 + ,51.28 + ,4.33 + ,8.61 + ,70 + ,74.28 + ,68.67 + ,72.95 + ,67.67 + ,71.95 + ,66 + ,70.28 + ,65.67 + ,69.95 + ,65.67 + ,69.95 + ,63.67 + ,67.95 + ,63.67 + ,67.95 + ,64 + ,68.28 + ,62 + ,66.28 + ,62 + ,66.28 + ,61.67 + ,65.95 + ,61.67 + ,65.95 + ,63.33 + ,67.61 + ,61 + ,65.28 + ,62.33 + ,66.61 + ,60.33 + ,64.61 + ,60.33 + ,64.61 + ,60.67 + ,64.95 + ,57.67 + ,61.95 + ,58.33 + ,62.61 + ,58 + ,62.28 + ,57.33 + ,61.61 + ,56.67 + ,60.95 + ,58 + ,62.28 + ,55.33 + ,59.61 + ,55.67 + ,59.95 + ,54.67 + ,58.95 + ,56.33 + ,60.61 + ,55 + ,59.28 + ,55 + ,59.28 + ,54.67 + ,58.95 + ,54.33 + ,58.61 + ,49 + ,53.28 + ,48.33 + ,52.61 + ,49.67 + ,53.95 + ,43.67 + ,47.95 + ,6.33 + ,10.61 + ,3 + ,7.28 + ,66.67 + ,70.95 + ,67.33 + ,71.61 + ,65.33 + ,69.61 + ,66 + ,70.28 + ,65.67 + ,69.95 + ,66.67 + ,70.95 + ,65.67 + ,69.95 + ,65 + ,69.28 + ,64.67 + ,68.95 + ,66.67 + ,70.95 + ,63.67 + ,67.95 + ,63.33 + ,67.61 + ,63.67 + ,67.95 + ,63.33 + ,67.61 + ,63.67 + ,67.95 + ,63 + ,67.28 + ,61.67 + ,65.95 + ,61.33 + ,65.61 + ,60.67 + ,64.95 + ,60 + ,64.28 + ,61.67 + ,65.95 + ,61.33 + ,65.61 + ,58.67 + ,62.95 + ,60.33 + ,64.61 + ,59.67 + ,63.95 + ,59.33 + ,63.61 + ,59.67 + ,63.95 + ,61 + ,65.28 + ,61 + ,65.28 + ,60 + ,64.28 + ,60 + ,64.28 + ,58.67 + ,62.95 + ,58.33 + ,62.61 + ,58 + ,62.28 + ,56.33 + ,60.61 + ,54.67 + ,58.95 + ,55.33 + ,59.61 + ,54 + ,58.28 + ,52.67 + ,56.95 + ,44 + ,48.28 + ,65.67 + ,69.95 + ,65 + ,69.28 + ,66.33 + ,70.61 + ,64 + ,68.28 + ,62.33 + ,66.61 + ,61.33 + ,65.61 + ,63 + ,67.28 + ,63.67 + ,67.95 + ,62 + ,66.28 + ,61.33 + ,65.61 + ,64.67 + ,68.95 + ,62.67 + ,66.95 + ,64 + ,68.28 + ,61 + ,65.28 + ,60.67 + ,64.95 + ,59.67 + ,63.95 + ,60.33 + ,64.61 + ,56.67 + ,60.95 + ,56.67 + ,60.95 + ,54.33 + ,58.61 + ,51 + ,55.28 + ,51 + ,55.28 + ,47 + ,51.28 + ,68 + ,72.28 + ,65 + ,69.28 + ,64 + ,68.28 + ,64 + ,68.28 + ,64 + ,68.28 + ,62 + ,66.28 + ,61 + ,65.28 + ,60 + ,64.28 + ,60 + ,64.28 + ,62 + ,66.28 + ,60 + ,64.28 + ,59 + ,63.28 + ,61 + ,65.28 + ,60 + ,64.28 + ,60 + ,64.28 + ,58 + ,62.28 + ,58 + ,62.28 + ,60 + ,64.28 + ,58 + ,62.28 + ,59 + ,63.28 + ,56 + ,60.28 + ,54 + ,58.28 + ,51 + ,55.28 + ,47 + ,51.28) + ,dim=c(2 + ,189) + ,dimnames=list(c('nopment' + ,'new-nopment') + ,1:189)) > y <- array(NA,dim=c(2,189),dimnames=list(c('nopment','new-nopment'),1:189)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par3 = '2' > par2 = '1' > par1 = 'two.sided' > par2 <- as.numeric(par2) > par3 <- as.numeric(par3) > x <- t(y) > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/rcomp/createtable") > > a<-table.start() > a <- table.row.start(a) > a <- table.element(a,'Kolmogorov_Smirnov Test',3,TRUE) > a <- table.row.end(a) > a <- table.row.start(a) > a <- table.element(a,'',1,TRUE) > a <- table.element(a,'Statistic',1,TRUE) > a <- table.element(a,'P-value',1,TRUE) > a <- table.row.end(a) > D <- ks.test(x[,par2],x[,par3],alternative=par1) Warning message: In ks.test(x[, par2], x[, par3], alternative = par1) : p-value will be approximate in the presence of ties > a<-table.row.start(a) > a<-table.element(a,'K-S Test',1,TRUE) > a<-table.element(a,signif(D$statistic[[1]], digits=5) ) > a<-table.element(a,signif(D$p.value, digits =5) ) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/12ttd1382909716.tab") > a<-table.start() > a <- table.row.start(a) > a <- table.element(a,'Means of Data Distributions ',3,TRUE) > a <- table.row.end(a) > a <- table.row.start(a) > a <- table.element(a,'Mean 1',1,TRUE) > a <- table.element(a,'Mean 2',1,TRUE) > a <- table.element(a,'Difference',1,TRUE) > a <- table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,signif(mean(x[,par2]), digits=5),1) > a<-table.element(a,signif(mean(x[,par3]), digits=5),1) > a<-table.element(a,signif( (mean(x[,par2])- mean(x[,par3])), digits=5),1) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/2eb2t1382909716.tab") > > > > proc.time() user system elapsed 0.505 0.244 0.721