R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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.8 + ,67.01921 + ,69.6 + ,66.67921 + ,69.87 + ,64.67921 + ,67.47 + ,64.34921 + ,67.6 + ,63.67921 + ,67.13 + ,61.67921 + ,66.27 + ,65.01921 + ,66.73 + ,63.34921 + ,68.07 + ,61.01921 + ,67.8 + ,64.01921 + ,64.8 + ,61.01921 + ,64.6 + ,62.01921 + ,64.2 + ,62.67921 + ,64.2 + ,60.67921 + ,63.67 + ,60.01921 + ,61 + ,60.67921 + ,59.67 + ,59.67921 + ,59.67 + ,59.01921 + ,59.8 + ,59.01921 + ,60.73 + ,59.67921 + ,59.4 + ,57.67921 + ,58.07 + ,59.67921 + ,57.47 + ,56.34921 + ,70.73 + ,54.01921 + ,72.87 + ,59.01921 + ,66 + ,49.67921 + ,66.07 + ,71.67921 + ,66 + ,70.67921 + ,66.27 + ,69.34921 + ,64 + ,66.34921 + ,63.67 + ,66.34921 + ,63.73 + ,63.67921 + ,63.33 + ,65.67921 + ,63.53 + ,64.67921 + ,63.53 + ,64.34921 + ,62.87 + ,62.01921 + ,59.53 + ,64.01921 + ,62.8 + ,65.01921 + ,60.8 + ,62.01921 + ,59.8 + ,62.34921 + ,56.67 + ,61.67921 + ,57.67 + ,64.01921 + ,58.4 + ,61.67921 + ,55.47 + ,62.67921 + ,56.2 + ,60.01921 + ,71.53 + ,59.67921 + ,68.67 + ,62.01921 + ,65.67 + ,59.01921 + ,66.73 + ,58.34921 + ,67.33 + ,57.01921 + ,66.73 + ,60.01921 + ,66.87 + ,58.34921 + ,65.8 + ,57.34921 + ,64.73 + ,58.01921 + ,65.47 + ,59.01921 + ,63.6 + ,55.67921 + ,64.07 + ,56.34921 + ,64.67 + ,56.01921 + ,63.73 + ,53.67921 + ,62.53 + ,54.01921 + ,61.93 + ,51.34921 + ,62.67 + ,47.34921 + ,62.8 + ,4.67921 + ,61.33 + ,70.34921 + ,62.6 + ,69.01921 + ,59.13 + ,68.01921 + ,61.27 + ,66.34921 + ,59.47 + ,66.01921 + ,57.87 + ,66.01921 + ,59.73 + ,64.01921 + ,61.4 + ,64.01921 + ,58.8 + ,64.34921 + ,58.33 + ,62.34921 + ,57.47 + ,62.34921 + ,57.13 + ,62.01921 + ,55 + ,62.01921 + ,51.53 + ,63.67921 + ,72.73 + ,61.34921 + ,73 + ,62.67921 + ,70.8 + ,60.67921 + ,70.07 + ,60.67921 + ,71.67 + ,61.01921 + ,71.07 + ,58.01921 + ,70.67 + ,58.67921 + ,70.73 + ,58.34921 + ,70.73 + ,57.67921 + ,68.6 + ,57.01921 + ,69.6 + ,58.34921 + ,66.47 + ,55.67921 + ,67.07 + ,56.01921 + ,68.67 + ,55.01921 + ,66.93 + ,56.67921 + ,65.93 + ,55.34921 + ,68.87 + ,55.34921 + ,66.53 + ,55.01921 + ,65.8 + ,54.67921 + ,66.6 + ,49.34921 + ,66 + ,48.67921 + ,65 + ,50.01921 + ,66.8 + ,44.01921 + ,65.6 + ,6.67921 + ,66 + ,3.34921 + ,65.67 + ,67.01921 + ,64.67 + ,67.67921 + ,65.07 + ,65.67921 + ,64.67 + ,66.34921 + ,65.07 + ,66.01921 + ,65.2 + ,67.01921 + ,64.87 + ,66.01921 + ,63.47 + ,65.34921 + ,62.6 + ,65.01921 + ,64.07 + ,67.01921 + ,63.73 + ,64.01921 + ,64.67 + ,63.67921 + ,61.6 + ,64.01921 + ,61.6 + ,63.67921 + ,60.47 + ,64.01921 + ,61.27 + ,63.34921 + ,63 + ,62.01921 + ,61.47 + ,61.67921 + ,60.87 + ,61.01921 + ,61.67 + ,60.34921 + ,62.87 + ,62.01921 + ,62.4 + ,61.67921 + ,59.73 + ,59.01921 + ,60.13 + ,60.67921 + ,58.8 + ,60.01921 + ,59.6 + ,59.67921 + ,58.93 + ,60.01921 + ,60.13 + ,61.34921 + ,58.2 + ,61.34921 + ,58.27 + ,60.34921 + ,58.27 + ,60.34921 + ,55.07 + ,59.01921 + ,53.87 + ,58.67921 + ,52.33 + ,58.34921 + ,47.2 + ,56.67921 + ,37.93 + ,55.01921 + ,72.73 + ,55.67921 + ,70.07 + ,54.34921 + ,70.67 + ,53.01921 + ,72.07 + ,44.34921 + ,68.8 + ,66.01921 + ,68.8 + ,65.34921 + ,67.47 + ,66.67921 + ,66.73 + ,64.34921 + ,66.53 + ,62.67921 + ,66 + ,61.67921 + ,67.6 + ,63.34921 + ,66 + ,64.01921 + ,66 + ,62.34921 + ,66.53 + ,61.67921 + ,65.8 + ,65.01921 + ,64.27 + ,63.01921 + ,64.67 + ,64.34921 + ,64.6 + ,61.34921 + ,64.13 + ,61.01921 + ,65.47 + ,60.01921 + ,62.93 + ,60.67921 + ,63.53 + ,57.01921 + ,62.13 + ,57.01921 + ,63.87 + ,54.67921 + ,64.67 + ,51.34921 + ,63.33 + ,51.34921 + ,63.13 + ,47.34921 + ,62.8 + ,68.34921 + ,62.4 + ,65.34921 + ,62.4 + ,64.34921 + ,62.6 + ,64.34921 + ,61.47 + ,64.34921 + ,62.2 + ,62.34921 + ,63 + ,61.34921 + ,61.8 + ,60.34921 + ,59.73 + ,60.34921 + ,60.33 + ,62.34921 + ,60.13 + ,60.34921 + ,59.53 + ,59.34921 + ,59 + ,61.34921 + ,55.93 + ,60.34921 + ,41.87 + ,60.34921 + ,36.33 + ,58.34921 + ,71.67 + ,58.34921 + ,71.47 + ,60.34921 + ,70.47 + ,58.34921 + ,69.53 + ,59.34921 + ,70.73 + ,56.34921 + ,69.93 + ,54.34921 + ,68.73 + ,51.34921 + ,67.53 + ,47.34921) + ,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' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2009, Aston University Statistical Software (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_AUSS.wasp/ > #Source of accompanying publication: > #Technical description: > par2 <- as.numeric(par2) > par3 <- as.numeric(par3) > x <- t(y) > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/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,round(D$statistic[[1]], digits=5) ) > a<-table.element(a,round(D$p.value, digits =5) ) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/1wxqq1257729624.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,round(mean(x[,par2]), digits=5),1,TRUE) > a<-table.element(a,round(mean(x[,par3]), digits=5),1,TRUE) > a<-table.element(a,round( (mean(x[,par2])- mean(x[,par3])), digits=5),1,TRUE) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/2n6r01257729624.tab") > > > > proc.time() user system elapsed 0.240 0.037 0.272