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(60.2783 + ,66.67 + ,57.9450 + ,66.33 + ,62.9450 + ,64.33 + ,53.6116 + ,64.00 + ,75.6116 + ,63.33 + ,74.6116 + ,61.33 + ,73.2783 + ,64.67 + ,70.2783 + ,63.00 + ,70.2783 + ,60.67 + ,67.6116 + ,63.67 + ,69.6116 + ,60.67 + ,68.6116 + ,61.67 + ,68.2783 + ,62.33 + ,65.9450 + ,60.33 + ,67.9450 + ,59.67 + ,68.9450 + ,60.33 + ,65.9450 + ,59.33 + ,66.2783 + ,58.67 + ,65.6116 + ,58.67 + ,67.9450 + ,59.33 + ,65.6116 + ,57.33 + ,66.6116 + ,59.33 + ,63.9450 + ,56.00 + ,63.6116 + ,53.67 + ,65.9450 + ,58.67 + ,62.9450 + ,49.33 + ,62.2783 + ,71.33 + ,60.9450 + ,70.33 + ,63.9450 + ,69.00 + ,62.2783 + ,66.00 + ,61.2783 + ,66.00 + ,61.9450 + ,63.33 + ,62.9450 + ,65.33 + ,59.6116 + ,64.33 + ,60.2783 + ,64.00 + ,59.9450 + ,61.67 + ,57.6116 + ,63.67 + ,57.9450 + ,64.67 + ,55.2783 + ,61.67 + ,51.2783 + ,62.00 + ,8.6116 + ,61.33 + ,74.2783 + ,63.67 + ,72.9450 + ,61.33 + ,71.9450 + ,62.33 + ,70.2783 + ,59.67 + ,69.9450 + ,59.33 + ,69.9450 + ,61.67 + ,67.9450 + ,58.67 + ,67.9450 + ,58.00 + ,68.2783 + ,56.67 + ,66.2783 + ,59.67 + ,66.2783 + ,58.00 + ,65.9450 + ,57.00 + ,65.9450 + ,57.67 + ,67.6116 + ,58.67 + ,65.2783 + ,55.33 + ,66.6116 + ,56.00 + ,64.6116 + ,55.67 + ,64.6116 + ,53.33 + ,64.9450 + ,53.67 + ,61.9450 + ,51.00 + ,62.6116 + ,47.00 + ,62.2783 + ,4.33 + ,61.6116 + ,70.00 + ,60.9450 + ,68.67 + ,62.2783 + ,67.67 + ,59.6116 + ,66.00 + ,59.9450 + ,65.67 + ,58.9450 + ,65.67 + ,60.6116 + ,63.67 + ,59.2783 + ,63.67 + ,59.2783 + ,64.00 + ,58.9450 + ,62.00 + ,58.6116 + ,62.00 + ,53.2783 + ,61.67 + ,52.6116 + ,61.67 + ,53.9450 + ,63.33 + ,47.9450 + ,61.00 + ,10.6116 + ,62.33 + ,7.2783 + ,60.33 + ,70.9450 + ,60.33 + ,71.6116 + ,60.67 + ,69.6116 + ,57.67 + ,70.2783 + ,58.33 + ,69.9450 + ,58.00 + ,70.9450 + ,57.33 + ,69.9450 + ,56.67 + ,69.2783 + ,58.00 + ,68.9450 + ,55.33 + ,70.9450 + ,55.67 + ,67.9450 + ,54.67 + ,67.6116 + ,56.33 + ,67.9450 + ,55.00 + ,67.6116 + ,55.00 + ,67.9450 + ,54.67 + ,67.2783 + ,54.33 + ,65.9450 + ,49.00 + ,65.6116 + ,48.33 + ,64.9450 + ,49.67 + ,64.2783 + ,43.67 + ,65.9450 + ,6.33 + ,65.6116 + ,3.00 + ,62.9450 + ,66.67 + ,64.6116 + ,67.33 + ,63.9450 + ,65.33 + ,63.6116 + ,66.00 + ,63.9450 + ,65.67 + ,65.2783 + ,66.67 + ,65.2783 + ,65.67 + ,64.2783 + ,65.00 + ,64.2783 + ,64.67 + ,62.9450 + ,66.67 + ,62.6116 + ,63.67 + ,62.2783 + ,63.33 + ,60.6116 + ,63.67 + ,58.9450 + ,63.33 + ,59.6116 + ,63.67 + ,58.2783 + ,63.00 + ,56.9450 + ,61.67 + ,48.2783 + ,61.33 + ,69.9450 + ,60.67 + ,69.2783 + ,60.00 + ,70.6116 + ,61.67 + ,68.2783 + ,61.33 + ,66.6116 + ,58.67 + ,65.6116 + ,60.33 + ,67.2783 + ,59.67 + ,67.9450 + ,59.33 + ,66.2783 + ,59.67 + ,65.6116 + ,61.00 + ,68.9450 + ,61.00 + ,66.9450 + ,60.00 + ,68.2783 + ,60.00 + ,65.2783 + ,58.67 + ,64.9450 + ,58.33 + ,63.9450 + ,58.00 + ,64.6116 + ,56.33 + ,60.9450 + ,54.67 + ,60.9450 + ,55.33 + ,58.6116 + ,54.00 + ,55.2783 + ,52.67 + ,55.2783 + ,44.00 + ,51.2783 + ,65.67 + ,72.2783 + ,65.00 + ,69.2783 + ,66.33 + ,68.2783 + ,64.00 + ,68.2783 + ,62.33 + ,68.2783 + ,61.33 + ,66.2783 + ,63.00 + ,65.2783 + ,63.67 + ,64.2783 + ,62.00 + ,64.2783 + ,61.33 + ,66.2783 + ,64.67 + ,64.2783 + ,62.67 + ,63.2783 + ,64.00 + ,65.2783 + ,61.00 + ,64.2783 + ,60.67 + ,64.2783 + ,59.67 + ,62.2783 + ,60.33 + ,62.2783 + ,56.67 + ,64.2783 + ,56.67 + ,62.2783 + ,54.33 + ,63.2783 + ,51.00 + ,60.2783 + ,51.00 + ,58.2783 + ,47.00 + ,55.2783 + ,68.00 + ,51.2783 + ,65.00 + ,4.2783 + ,64.00 + ,4.2783 + ,64.00 + ,4.2783 + ,64.00 + ,4.2783 + ,62.00 + ,4.2783 + ,61.00 + ,4.2783 + ,60.00 + ,4.2783 + ,60.00 + ,4.2783 + ,62.00 + ,4.2783 + ,60.00 + ,4.2783 + ,59.00 + ,4.2783 + ,61.00 + ,4.2783 + ,60.00 + ,4.2783 + ,60.00 + ,4.2783 + ,58.00 + ,4.2783 + ,58.00 + ,4.2783 + ,60.00 + ,4.2783 + ,58.00 + ,4.2783 + ,59.00 + ,4.2783 + ,56.00 + ,4.2783 + ,54.00 + ,4.2783 + ,51.00 + ,4.2783 + ,47.00) + ,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' > par3 <- '2' > par2 <- '1' > par1 <- 'two.sided' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: aston2 > #To cite this work: Ian E. Holliday, 2012, Kolmogorov-Smirnov Test (v1.0.3) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_Reddy-Moores%20K-S%20Test.wasp/ > #Source of accompanying publication: > # > par2 <- as.numeric(par2) > par3 <- as.numeric(par3) > x <- t(y) > > #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,'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/fisher/rcomp/tmp/16wtb1382878817.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/fisher/rcomp/tmp/2iixt1382878817.tab") > > > > proc.time() user system elapsed 0.416 0.154 0.550