x <- array(list(70.80
,67.0158766666667
,69.60
,66.6825433333333
,69.87
,64.6825433333333
,67.47
,64.3492100000000
,67.60
,63.6825433333333
,67.13
,61.6825433333333
,66.27
,65.0158766666667
,66.73
,63.3492100000000
,68.07
,61.0158766666667
,67.80
,64.0158766666667
,64.80
,61.0158766666667
,64.60
,62.0158766666667
,64.20
,62.6825433333333
,64.20
,60.6825433333333
,63.67
,60.0158766666667
,61.00
,60.6825433333333
,59.67
,59.6825433333333
,59.67
,59.0158766666667
,59.80
,59.0158766666667
,60.73
,59.6825433333333
,59.40
,57.6825433333333
,58.07
,59.6825433333333
,57.47
,56.3492100000000
,70.73
,54.0158766666667
,72.87
,59.0158766666667
,66.00
,49.6825433333333
,66.07
,71.6825433333333
,66.00
,70.6825433333333
,66.27
,69.3492100000000
,64.00
,66.3492100000000
,63.67
,66.3492100000000
,63.73
,63.6825433333333
,63.33
,65.6825433333333
,63.53
,64.6825433333333
,63.53
,64.3492100000000
,62.87
,62.0158766666667
,59.53
,64.0158766666667
,62.80
,65.0158766666667
,60.80
,62.0158766666667
,59.80
,62.3492100000000
,56.67
,61.6825433333333
,57.67
,64.0158766666667
,58.40
,61.6825433333333
,55.47
,62.6825433333333
,56.20
,60.0158766666667
,71.53
,59.6825433333333
,68.67
,62.0158766666667
,65.67
,59.0158766666667
,66.73
,58.3492100000000
,67.33
,57.0158766666667
,66.73
,60.0158766666667
,66.87
,58.3492100000000
,65.80
,57.3492100000000
,64.73
,58.0158766666667
,65.47
,59.0158766666667
,63.60
,55.6825433333333
,64.07
,56.3492100000000
,64.67
,56.0158766666667
,63.73
,53.6825433333333
,62.53
,54.0158766666667
,61.93
,51.3492100000000
,62.67
,47.3492100000000
,62.80
,4.6825433333333
,61.33
,70.3492100000000
,62.60
,69.0158766666667
,59.13
,68.0158766666667
,61.27
,66.3492100000000
,59.47
,66.0158766666667
,57.87
,66.0158766666667
,59.73
,64.0158766666667
,61.40
,64.0158766666667
,58.80
,64.3492100000000
,58.33
,62.3492100000000
,57.47
,62.3492100000000
,57.13
,62.0158766666667
,55.00
,62.0158766666667
,51.53
,63.6825433333333
,72.73
,61.3492100000000
,73.00
,62.6825433333333
,70.80
,60.6825433333333
,70.07
,60.6825433333333
,71.67
,61.0158766666667
,71.07
,58.0158766666667
,70.67
,58.6825433333333
,70.73
,58.3492100000000
,70.73
,57.6825433333333
,68.60
,57.0158766666667
,69.60
,58.3492100000000
,66.47
,55.6825433333333
,67.07
,56.0158766666667
,68.67
,55.0158766666667
,66.93
,56.6825433333333
,65.93
,55.3492100000000
,68.87
,55.3492100000000
,66.53
,55.0158766666667
,65.80
,54.6825433333333
,66.60
,49.3492100000000
,66.00
,48.6825433333333
,65.00
,50.0158766666667
,66.80
,44.0158766666667
,65.60
,6.6825433333333
,66.00
,3.3492100000000
,65.67
,67.0158766666667
,64.67
,67.6825433333333
,65.07
,65.6825433333333
,64.67
,66.3492100000000
,65.07
,66.0158766666667
,65.20
,67.0158766666667
,64.87
,66.0158766666667
,63.47
,65.3492100000000
,62.60
,65.0158766666667
,64.07
,67.0158766666667
,63.73
,64.0158766666667
,64.67
,63.6825433333333
,61.60
,64.0158766666667
,61.60
,63.6825433333333
,60.47
,64.0158766666667
,61.27
,63.3492100000000
,63.00
,62.0158766666667
,61.47
,61.6825433333333
,60.87
,61.0158766666667
,61.67
,60.3492100000000
,62.87
,62.0158766666667
,62.40
,61.6825433333333
,59.73
,59.0158766666667
,60.13
,60.6825433333333
,58.80
,60.0158766666667
,59.60
,59.6825433333333
,58.93
,60.0158766666667
,60.13
,61.3492100000000
,58.20
,61.3492100000000
,58.27
,60.3492100000000
,58.27
,60.3492100000000
,55.07
,59.0158766666667
,53.87
,58.6825433333333
,52.33
,58.3492100000000
,47.20
,56.6825433333333
,37.93
,55.0158766666667
,72.73
,55.6825433333333
,70.07
,54.3492100000000
,70.67
,53.0158766666667
,72.07
,44.3492100000000
,68.80
,66.0158766666667
,68.80
,65.3492100000000
,67.47
,66.6825433333333
,66.73
,64.3492100000000
,66.53
,62.6825433333333
,66.00
,61.6825433333333
,67.60
,63.3492100000000
,66.00
,64.0158766666667
,66.00
,62.3492100000000
,66.53
,61.6825433333333
,65.80
,65.0158766666667
,64.27
,63.0158766666667
,64.67
,64.3492100000000
,64.60
,61.3492100000000
,64.13
,61.0158766666667
,65.47
,60.0158766666667
,62.93
,60.6825433333333
,63.53
,57.0158766666667
,62.13
,57.0158766666667
,63.87
,54.6825433333333
,64.67
,51.3492100000000
,63.33
,51.3492100000000
,63.13
,47.3492100000000
,62.80
,68.3492100000000
,62.40
,65.3492100000000
,62.40
,64.3492100000000
,62.60
,64.3492100000000
,61.47
,64.3492100000000
,62.20
,62.3492100000000
,63.00
,61.3492100000000
,61.80
,60.3492100000000
,59.73
,60.3492100000000
,60.33
,62.3492100000000
,60.13
,60.3492100000000
,59.53
,59.3492100000000
,59.00
,61.3492100000000
,55.93
,60.3492100000000
,41.87
,60.3492100000000
,36.33
,58.3492100000000
,71.67
,58.3492100000000
,71.47
,60.3492100000000
,70.47
,58.3492100000000
,69.53
,59.3492100000000
,70.73
,56.3492100000000
,69.93
,54.3492100000000
,68.73
,51.3492100000000
,67.53
,47.3492100000000)
,dim=c(2
,189)
,dimnames=list(c('pment'
,'newnopment')
,1:189))
 y <- array(NA,dim=c(2,189),dimnames=list(c('pment','newnopment'),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'
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)
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/1f5ff1350818907.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/24jtm1350818907.tab") 


