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(58 + ,161 + ,51 + ,159 + ,53 + ,161 + ,54 + ,158 + ,59 + ,157 + ,59 + ,155 + ,166 + ,57 + ,56 + ,163 + ,51 + ,161 + ,52 + ,158 + ,64 + ,168 + ,64 + ,165 + ,52 + ,163 + ,57 + ,160 + ,65 + ,166 + ,66 + ,165 + ,62 + ,168 + ,62 + ,165 + ,61 + ,175 + ,61 + ,171 + ,61 + ,170 + ,61 + ,170 + ,54 + ,171 + ,59 + ,168 + ,50 + ,166 + ,50 + ,165 + ,63 + ,169 + ,61 + ,168 + ,58 + ,166 + ,60 + ,160 + ,39 + ,157 + ,41 + ,153 + ,71 + ,166 + ,71 + ,165 + ,52 + ,164 + ,52 + ,161 + ,68 + ,169 + ,63 + ,170 + ,56 + ,166 + ,54 + ,165 + ,54 + ,164 + ,53 + ,160 + ,63 + ,163 + ,59 + ,159 + ,54 + ,160 + ,55 + ,158 + ,49 + ,161 + ,NA + ,NA + ,54 + ,174 + ,56 + ,173 + ,75 + ,162 + ,75 + ,158 + ,56 + ,165 + ,57 + ,163 + ,66 + ,170 + ,65 + ,NA + ,78 + ,173 + ,75 + ,169 + ,60 + ,162 + ,59 + ,160 + ,64 + ,165 + ,63 + ,163 + ,64 + ,164 + ,62 + ,161 + ,52 + ,158 + ,51 + ,155 + ,62 + ,175 + ,61 + ,171 + ,55 + ,165 + ,54 + ,163 + ,56 + ,163 + ,57 + ,159 + ,50 + ,166 + ,50 + ,161 + ,50 + ,171 + ,NA + ,NA + ,50 + ,160 + ,55 + ,150 + ,63 + ,160 + ,64 + ,158 + ,61 + ,165 + ,60 + ,163 + ,53 + ,169 + ,52 + ,175 + ,60 + ,167 + ,55 + ,163 + ,56 + ,170 + ,56 + ,170 + ,53 + ,165 + ,53 + ,165 + ,57 + ,163 + ,59 + ,160 + ,57 + ,162 + ,56 + ,160 + ,56 + ,161 + ,56 + ,161 + ,56 + ,165 + ,57 + ,160 + ,50 + ,169 + ,50 + ,165 + ,52 + ,159 + ,52 + ,153 + ,55 + ,155 + ,NA + ,154 + ,55 + ,164 + ,55 + ,163 + ,47 + ,163 + ,47 + ,160 + ,45 + ,163 + ,45 + ,160 + ,62 + ,175 + ,63 + ,173 + ,53 + ,164 + ,51 + ,160 + ,52 + ,152 + ,51 + ,150 + ,57 + ,167 + ,55 + ,164 + ,64 + ,166 + ,64 + ,165 + ,59 + ,166 + ,55 + ,163 + ,55 + ,174 + ,57 + ,171 + ,76 + ,167 + ,77 + ,165 + ,62 + ,168 + ,62 + ,163 + ,68 + ,178 + ,68 + ,175 + ,55 + ,165 + ,55 + ,163 + ,52 + ,169 + ,56 + ,NA + ,47 + ,153 + ,NA + ,154 + ,45 + ,157 + ,45 + ,153 + ,68 + ,171 + ,68 + ,169 + ,44 + ,157 + ,44 + ,155 + ,62 + ,166 + ,61 + ,163 + ,56 + ,160 + ,53 + ,158 + ,50 + ,148 + ,47 + ,148 + ,53 + ,162 + ,53 + ,160 + ,64 + ,172 + ,62 + ,168 + ,62 + ,167 + ,NA + ,NA + ,52 + ,163 + ,53 + ,160 + ,53 + ,165 + ,55 + ,163 + ,54 + ,176 + ,55 + ,176 + ,64 + ,171 + ,66 + ,171 + ,55 + ,160 + ,55 + ,155 + ,55 + ,165 + ,55 + ,165 + ,59 + ,157 + ,55 + ,158 + ,70 + ,173 + ,67 + ,170 + ,57 + ,168 + ,58 + ,165 + ,47 + ,162 + ,47 + ,160 + ,47 + ,150 + ,45 + ,152 + ,55 + ,162 + ,NA + ,NA + ,48 + ,163 + ,44 + ,160 + ,59 + ,170 + ,NA + ,NA + ,58 + ,169 + ,NA + ,NA + ,57 + ,167 + ,56 + ,165 + ,51 + ,163 + ,50 + ,160 + ,54 + ,161 + ,54 + ,160 + ,53 + ,162 + ,52 + ,158 + ,59 + ,172 + ,58 + ,171 + ,59 + ,159 + ,59 + ,155 + ,63 + ,170 + ,62 + ,168 + ,66 + ,166 + ,66 + ,165 + ,53 + ,158 + ,50 + ,155 + ,54 + ,163 + ,NA + ,NA + ,60 + ,174 + ,NA + ,NA + ,43 + ,154 + ,NA + ,NA + ,63 + ,165 + ,59 + ,160 + ,56 + ,162 + ,56 + ,160 + ,60 + ,172 + ,55 + ,168 + ,58 + ,169 + ,54 + ,166 + ,50 + ,158 + ,49 + ,155 + ,59 + ,164 + ,59 + ,165 + ,51 + ,156 + ,51 + ,158 + ,62 + ,164 + ,61 + ,161 + ,77 + ,182 + ,77 + ,180 + ,68 + ,177 + ,70 + ,175 + ,76 + ,170 + ,76 + ,165 + ,76 + ,167 + ,77 + ,165 + ,69 + ,186 + ,73 + ,180 + ,71 + ,178 + ,71 + ,175 + ,65 + ,171 + ,64 + ,170 + ,70 + ,175 + ,75 + ,174 + ,92 + ,187 + ,101 + ,185 + ,76 + ,197 + ,75 + ,200 + ,119 + ,180 + ,124 + ,178 + ,65 + ,175 + ,66 + ,173 + ,66 + ,173 + ,70 + ,170 + ,101 + ,183 + ,100 + ,180 + ,75 + ,178 + ,73 + ,175 + ,79 + ,173 + ,76 + ,173 + ,64 + ,176 + ,65 + ,175 + ,69 + ,174 + ,69 + ,171 + ,88 + ,178 + ,86 + ,175 + ,65 + ,187 + ,67 + ,188 + ,80 + ,178 + ,80 + ,178 + ,78 + ,183 + ,80 + ,180 + ,85 + ,179 + ,82 + ,175 + ,73 + ,180 + ,NA + ,NA + ,82 + ,182 + ,85 + ,183 + ,74 + ,169 + ,73 + ,170 + ,102 + ,185 + ,107 + ,185 + ,64 + ,177 + ,NA + ,NA + ,65 + ,176 + ,64 + ,172 + ,73 + ,183 + ,74 + ,180 + ,75 + ,172 + ,70 + ,169 + ,57 + ,173 + ,58 + ,170 + ,68 + ,165 + ,69 + ,165 + ,71 + ,177 + ,71 + ,170 + ,71 + ,180 + ,76 + ,175 + ,97 + ,189 + ,98 + ,185 + ,80 + ,178 + ,76 + ,175 + ,66 + ,173 + ,66 + ,175 + ,69 + ,182 + ,70 + ,180 + ,69 + ,183 + ,70 + ,183 + ,55 + ,168 + ,56 + ,170 + ,59 + ,182 + ,61 + ,183 + ,62 + ,178 + ,66 + ,175 + ,70 + ,173 + ,68 + ,170 + ,84 + ,184 + ,86 + ,183 + ,69 + ,180 + ,71 + ,180 + ,88 + ,189 + ,87 + ,185 + ,103 + ,185 + ,101 + ,182 + ,63 + ,178 + ,63 + ,175 + ,84 + ,183 + ,90 + ,183 + ,79 + ,179 + ,79 + ,171 + ,67 + ,179 + ,67 + ,179 + ,83 + ,184 + ,83 + ,181 + ,96 + ,184 + ,94 + ,183 + ,75 + ,169 + ,76 + ,165 + ,65 + ,178 + ,66 + ,178 + ,78 + ,178 + ,77 + ,175 + ,69 + ,167 + ,73 + ,165 + ,67 + ,179 + ,NA + ,NA + ,87 + ,185 + ,89 + ,185 + ,83 + ,177 + ,84 + ,175 + ,90 + ,188 + ,91 + ,185 + ,85 + ,191 + ,83 + ,188 + ,66 + ,175 + ,68 + ,175 + ,88 + ,184 + ,86 + ,183 + ,54 + ,169 + ,58 + ,165 + ,69 + ,172 + ,68 + ,174 + ,56 + ,163 + ,58 + ,161 + ,96 + ,191 + ,95 + ,188 + ,76 + ,169 + ,75 + ,165 + ,61 + ,170 + ,61 + ,170 + ,82 + ,176 + ,NA + ,NA + ,62 + ,168 + ,64 + ,168 + ,71 + ,178 + ,68 + ,178 + ,66 + ,170 + ,67 + ,165 + ,81 + ,178 + ,82 + ,175 + ,68 + ,174 + ,68 + ,173 + ,80 + ,176 + ,78 + ,175 + ,82 + ,181 + ,NA + ,NA + ,70 + ,173 + ,70 + ,173 + ,76 + ,183 + ,75 + ,180 + ,88 + ,185 + ,93 + ,188 + ,89 + ,173 + ,86 + ,173 + ,74 + ,175 + ,71 + ,175 + ,83 + ,180 + ,80 + ,180 + ,81 + ,175 + ,NA + ,NA + ,90 + ,181 + ,91 + ,178 + ,79 + ,177 + ,81 + ,178) + ,dim=c(4 + ,200) + ,dimnames=list(c('V1' + ,'V2' + ,'V3' + ,'V4') + ,1:200)) > y <- array(NA,dim=c(4,200),dimnames=list(c('V1','V2','V3','V4'),1:200)) > 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/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/1xrqe1338544573.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/23hcd1338544573.tab") > > > > proc.time() user system elapsed 0.434 0.067 0.489