R version 2.12.0 (2010-10-15) Copyright (C) 2010 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(58 + ,161 + ,53 + ,161 + ,59 + ,157 + ,166 + ,57 + ,51 + ,161 + ,64 + ,168 + ,52 + ,163 + ,65 + ,166 + ,62 + ,168 + ,61 + ,175 + ,61 + ,170 + ,54 + ,171 + ,50 + ,166 + ,63 + ,169 + ,58 + ,166 + ,39 + ,157 + ,71 + ,166 + ,52 + ,164 + ,68 + ,169 + ,56 + ,166 + ,54 + ,164 + ,63 + ,163 + ,54 + ,160 + ,54 + ,174 + ,75 + ,162 + ,56 + ,165 + ,78 + ,173 + ,60 + ,162 + ,64 + ,165 + ,64 + ,164 + ,52 + ,158 + ,62 + ,175 + ,55 + ,165 + ,56 + ,163 + ,50 + ,166 + ,50 + ,160 + ,63 + ,160 + ,61 + ,165 + ,53 + ,169 + ,60 + ,167 + ,56 + ,170 + ,53 + ,165 + ,57 + ,163 + ,57 + ,162 + ,56 + ,161 + ,56 + ,165 + ,50 + ,169 + ,52 + ,159 + ,55 + ,164 + ,47 + ,163 + ,45 + ,163 + ,62 + ,175 + ,53 + ,164 + ,52 + ,152 + ,57 + ,167 + ,64 + ,166 + ,59 + ,166 + ,55 + ,174 + ,76 + ,167 + ,62 + ,168 + ,68 + ,178 + ,55 + ,165 + ,45 + ,157 + ,68 + ,171 + ,44 + ,157 + ,62 + ,166 + ,56 + ,160 + ,50 + ,148 + ,53 + ,162 + ,64 + ,172 + ,52 + ,163 + ,53 + ,165 + ,54 + ,176 + ,64 + ,171 + ,55 + ,160 + ,55 + ,165 + ,59 + ,157 + ,70 + ,173 + ,57 + ,168 + ,47 + ,162 + ,47 + ,150 + ,48 + ,163 + ,57 + ,167 + ,51 + ,163 + ,54 + ,161 + ,53 + ,162 + ,59 + ,172 + ,59 + ,159 + ,63 + ,170 + ,66 + ,166 + ,53 + ,158 + ,63 + ,165 + ,56 + ,162 + ,60 + ,172 + ,58 + ,169 + ,50 + ,158 + ,59 + ,164 + ,51 + ,156 + ,62 + ,164 + ,77 + ,182 + ,68 + ,177 + ,76 + ,170 + ,76 + ,167 + ,69 + ,186 + ,71 + ,178 + ,65 + ,171 + ,70 + ,175 + ,92 + ,187 + ,76 + ,197 + ,119 + ,180 + ,65 + ,175 + ,66 + ,173 + ,101 + ,183 + ,75 + ,178 + ,79 + ,173 + ,64 + ,176 + ,69 + ,174 + ,88 + ,178 + ,65 + ,187 + ,80 + ,178 + ,78 + ,183 + ,85 + ,179 + ,82 + ,182 + ,74 + ,169 + ,102 + ,185 + ,65 + ,176 + ,73 + ,183 + ,75 + ,172 + ,57 + ,173 + ,68 + ,165 + ,71 + ,177 + ,71 + ,180 + ,97 + ,189 + ,80 + ,178 + ,66 + ,173 + ,69 + ,182 + ,69 + ,183 + ,55 + ,168 + ,59 + ,182 + ,62 + ,178 + ,70 + ,173 + ,84 + ,184 + ,69 + ,180 + ,88 + ,189 + ,103 + ,185 + ,63 + ,178 + ,84 + ,183 + ,79 + ,179 + ,67 + ,179 + ,83 + ,184 + ,96 + ,184 + ,75 + ,169 + ,65 + ,178 + ,78 + ,178 + ,69 + ,167 + ,87 + ,185 + ,83 + ,177 + ,90 + ,188 + ,85 + ,191 + ,66 + ,175 + ,88 + ,184 + ,54 + ,169 + ,69 + ,172 + ,56 + ,163 + ,96 + ,191 + ,76 + ,169 + ,61 + ,170 + ,62 + ,168 + ,71 + ,178 + ,66 + ,170 + ,81 + ,178 + ,68 + ,174 + ,80 + ,176 + ,70 + ,173 + ,76 + ,183 + ,88 + ,185 + ,89 + ,173 + ,74 + ,175 + ,83 + ,180 + ,90 + ,181 + ,79 + ,177) + ,dim=c(2 + ,181) + ,dimnames=list(c('Wei' + ,'Heigh') + ,1:181)) > y <- array(NA,dim=c(2,181),dimnames=list(c('Wei','Heigh'),1:181)) > 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/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/www/rcomp/tmp/1kmhm1338545999.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/www/rcomp/tmp/2umo31338545999.tab") > > > > proc.time() user system elapsed 0.270 0.170 0.449