R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-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(70.80 + ,70.94 + ,69.60 + ,70.60 + ,69.87 + ,68.60 + ,67.47 + ,68.27 + ,67.60 + ,67.60 + ,67.13 + ,65.60 + ,66.27 + ,68.94 + ,66.73 + ,67.27 + ,68.07 + ,64.94 + ,67.80 + ,67.94 + ,64.80 + ,64.94 + ,64.60 + ,65.94 + ,64.20 + ,66.60 + ,64.20 + ,64.60 + ,63.67 + ,63.94 + ,61.00 + ,64.60 + ,59.67 + ,63.60 + ,59.67 + ,62.94 + ,59.80 + ,62.94 + ,60.73 + ,63.60 + ,59.40 + ,61.60 + ,58.07 + ,63.60 + ,57.47 + ,60.27 + ,70.73 + ,57.94 + ,72.87 + ,62.94 + ,66.00 + ,53.60 + ,66.07 + ,75.60 + ,66.00 + ,74.60 + ,66.27 + ,73.27 + ,64.00 + ,70.27 + ,63.67 + ,70.27 + ,63.73 + ,67.60 + ,63.33 + ,69.60 + ,63.53 + ,68.60 + ,63.53 + ,68.27 + ,62.87 + ,65.94 + ,59.53 + ,67.94 + ,62.80 + ,68.94 + ,60.80 + ,65.94 + ,59.80 + ,66.27 + ,56.67 + ,65.60 + ,57.67 + ,67.94 + ,58.40 + ,65.60 + ,55.47 + ,66.60 + ,56.20 + ,63.94 + ,71.53 + ,63.60 + ,68.67 + ,65.94 + ,65.67 + ,62.94 + ,66.73 + ,62.27 + ,67.33 + ,60.94 + ,66.73 + ,63.94 + ,66.87 + ,62.27 + ,65.80 + ,61.27 + ,64.73 + ,61.94 + ,65.47 + ,62.94 + ,63.60 + ,59.60 + ,64.07 + ,60.27 + ,64.67 + ,59.94 + ,63.73 + ,57.60 + ,62.53 + ,57.94 + ,61.93 + ,55.27 + ,62.67 + ,51.27 + ,62.80 + ,8.60 + ,61.33 + ,74.27 + ,62.60 + ,72.94 + ,59.13 + ,71.94 + ,61.27 + ,70.27 + ,59.47 + ,69.94 + ,57.87 + ,69.94 + ,59.73 + ,67.94 + ,61.40 + ,67.94 + ,58.80 + ,68.27 + ,58.33 + ,66.27 + ,57.47 + ,66.27 + ,57.13 + ,65.94 + ,55.00 + ,65.94 + ,51.53 + ,67.60 + ,72.73 + ,65.27 + ,73.00 + ,66.60 + ,70.80 + ,64.60 + ,70.07 + ,64.60 + ,71.67 + ,64.94 + ,71.07 + ,61.94 + ,70.67 + ,62.60 + ,70.73 + ,62.27 + ,70.73 + ,61.60 + ,68.60 + ,60.94 + ,69.60 + ,62.27 + ,66.47 + ,59.60 + ,67.07 + ,59.94 + ,68.67 + ,58.94 + ,66.93 + ,60.60 + ,65.93 + ,59.27 + ,68.87 + ,59.27 + ,66.53 + ,58.94 + ,65.80 + ,58.60 + ,66.60 + ,53.27 + ,66.00 + ,52.60 + ,65.00 + ,53.94 + ,66.80 + ,47.94 + ,65.60 + ,10.60 + ,66.00 + ,7.27 + ,65.67 + ,70.94 + ,64.67 + ,71.60 + ,65.07 + ,69.60 + ,64.67 + ,70.27 + ,65.07 + ,69.94 + ,65.20 + ,70.94 + ,64.87 + ,69.94 + ,63.47 + ,69.27 + ,62.60 + ,68.94 + ,64.07 + ,70.94 + ,63.73 + ,67.94 + ,64.67 + ,67.60 + ,61.60 + ,67.94 + ,61.60 + ,67.60 + ,60.47 + ,67.94 + ,61.27 + ,67.27 + ,63.00 + ,65.94 + ,61.47 + ,65.60 + ,60.87 + ,64.94 + ,61.67 + ,64.27 + ,62.87 + ,65.94 + ,62.40 + ,65.60 + ,59.73 + ,62.94 + ,60.13 + ,64.60 + ,58.80 + ,63.94 + ,59.60 + ,63.60 + ,58.93 + ,63.94 + ,60.13 + ,65.27 + ,58.20 + ,65.27 + ,58.27 + ,64.27 + ,58.27 + ,64.27 + ,55.07 + ,62.94 + ,53.87 + ,62.60 + ,52.33 + ,62.27 + ,47.20 + ,60.60 + ,37.93 + ,58.94 + ,72.73 + ,59.60 + ,70.07 + ,58.27 + ,70.67 + ,56.94 + ,72.07 + ,48.27 + ,68.80 + ,69.94 + ,68.80 + ,69.27 + ,67.47 + ,70.60 + ,66.73 + ,68.27 + ,66.53 + ,66.60 + ,66.00 + ,65.60 + ,67.60 + ,67.27 + ,66.00 + ,67.94 + ,66.00 + ,66.27 + ,66.53 + ,65.60 + ,65.80 + ,68.94 + ,64.27 + ,66.94 + ,64.67 + ,68.27 + ,64.60 + ,65.27 + ,64.13 + ,64.94 + ,65.47 + ,63.94 + ,62.93 + ,64.60 + ,63.53 + ,60.94 + ,62.13 + ,60.94 + ,63.87 + ,58.60 + ,64.67 + ,55.27 + ,63.33 + ,55.27 + ,63.13 + ,51.27 + ,62.80 + ,72.27 + ,62.40 + ,69.27 + ,62.40 + ,68.27 + ,62.60 + ,68.27 + ,61.47 + ,68.27 + ,62.20 + ,66.27 + ,63.00 + ,65.27 + ,61.80 + ,64.27 + ,59.73 + ,64.27 + ,60.33 + ,66.27 + ,60.13 + ,64.27 + ,59.53 + ,63.27 + ,59.00 + ,65.27 + ,55.93 + ,64.27 + ,41.87 + ,64.27 + ,36.33 + ,62.27 + ,71.67 + ,62.27 + ,71.47 + ,64.27 + ,70.47 + ,62.27 + ,69.53 + ,63.27 + ,70.73 + ,60.27 + ,69.93 + ,58.27 + ,68.73 + ,55.27 + ,67.53 + ,51.27) + ,dim=c(2 + ,189) + ,dimnames=list(c('pment' + ,'nopment') + ,1:189)) > y <- array(NA,dim=c(2,189),dimnames=list(c('pment','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) : cannot compute correct p-values with 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/1ca9x1320669990.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/2fyeo1320669991.tab") > > > > proc.time() user system elapsed 0.271 0.032 0.308