Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_twosampletests_mean.wasp
Title produced by softwarePaired and Unpaired Two Samples Tests about the Mean
Date of computationMon, 04 Dec 2017 13:35:51 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2017/Dec/04/t1512391004vbll1mre1txcgpn.htm/, Retrieved Tue, 14 May 2024 15:43:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=308492, Retrieved Tue, 14 May 2024 15:43:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact97
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Paired and Unpaired Two Samples Tests about the Mean] [] [2017-12-04 12:35:51] [8829069b4432872c842806a35f4fa8df] [Current]
Feedback Forum

Post a new message
Dataseries X:
62.4	63.2
67.4	68.6
76.1	77.7
67.4	68.1
74.5	75.1
72.6	73.3
60.5	60.5
66.1	65.9
76.5	77.7
76.8	77.1
77	77.7
71	71.3
74.8	76
73.7	75.3
80.5	81.7
71.8	72.5
76.9	77.4
79.9	81.1
65.9	65.1
69.5	68.7
75.1	75.6
79.6	79.7
75.2	75.3
68	67.7
72.8	73.2
71.5	72.2
78.5	79.3
76.8	77.5
75.3	75.6
76.7	77.4
69.7	69.2
67.8	67.1
77.5	77.9
82.5	82.7
75.3	75.7
70.9	70.1
76	76.4
73.7	74.3
79.7	80.5
77.8	78
73.3	73.5
78.3	78.8
71.9	71.2
67	66.2
82	82.7
83.7	83.8
74.8	75
80	80.4
74.3	74.6
76.8	77.7
89	89.8
81.9	82.4
76.8	77
88.9	89.6
75.8	75.7
75.5	75.1
89.1	89.9
88	88.8
85.9	86.5
89.3	90
82.9	84
81.2	82.7
90.5	91.7
86.4	87.5
81.8	82
91.3	92.2
73.4	73.1
76.6	75.6
91	91.6
87	87.5
89.7	90.1
90.7	91.3
86.5	87.6
86.6	88.4
98.8	100.7
84.4	85.3
91.4	92
95.7	96.8
78.5	77.9
81.7	80.9
94.3	95.3
98.5	99.3
95.4	96.1
91.7	92.5
92.8	93.7
90.5	92.1
102.2	103.6
91.8	92.5
95	95.7
102	103.4
88.9	89
89.6	89.1
97.9	98.7
108.6	109.4
100.8	101.1
95.1	95.4
101	101.4
100.9	102.1
102.5	103.6
105.4	106
98.4	98.4
105.3	106.6
96.5	95.8
88.1	87.2
107.9	108.5
107	107
92.5	92
95.7	94.9
85.2	84.4
85.5	85
94.7	94
86.2	84.5
88.8	88.2
93.4	92.1
83.4	81.1
82.9	81.2
96.7	96.1
96.2	95.3
92.8	92.1
92.8	91.7
90	90.3
95.4	96.1
108.3	108.7
96.3	95.9
95	95.1
109	109.4
92	91.2
92.3	91.4
107	107.4
105.5	105.6
105.4	105.3
103.9	103.7
99.2	99.5
102.2	103.2
121.5	123.1
102.3	102.2
110	110
105.9	106.2
91.9	91.3
100	99.3
111.7	111.8
104.9	104.4
103.3	102.4
101.8	101
100.8	100.6
104.2	104.5
116.5	117.4
97.9	97.4
100.7	99.5
107	106.4
96.3	95.2
96	94
104.5	104.1
107.4	105.8
102.4	101.1
94.9	93.5
98.8	97.9
96.8	96.8
108.2	108.4
103.8	103.5
102.3	101.3
107.2	107.4
102	100.7
92.6	91.1
105.2	105
113	112.8
105.6	105.6
101.6	101
101.7	101.9
102.7	103.5
109	109.5
105.5	105
103.3	102.9
108.6	108.5
98.2	96.9
90	88.4
112.4	112.4
111.9	111.3
102.1	101.6
102.4	101.2
101.7	101.8
98.7	98.8
114	114.4
105.1	104.5
98.3	97.6
110	109.1
96.5	94.5
92.2	90.4
112	111.8
111.4	110.5
107.5	106.8
103.4	101.8
103.5	103.7
107.4	107.4
117.6	117.5
110.2	109.6
104.3	102.8
115.9	115.5
98.9	97.8
101.9	100.2
113.5	112.9
109.5	108.7
110	109
114.2	113.9
106.9	106.9
109.2	109.6
124.2	124.5
104.7	104.2
111.9	110.8
119	118.7
102.9	102.1
106.3	105.1




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time1 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=308492&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]1 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=308492&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=308492&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center







Two Sample t-test (paired)
Difference: Mean1 - Mean20.00707547169811391
t-stat0.121748031930213
df211
p-value0.903214441770657
H0 value0
Alternativetwo.sided
CI Level0.95
CI[-0.107486295291553,0.121637238687781]
F-test to compare two variances
F-stat1.01964748680943
df211
p-value0.887754656059172
H0 value1
Alternativetwo.sided
CI Level0.95
CI[0.777919286383706,1.33648955046471]

\begin{tabular}{lllllllll}
\hline
Two Sample t-test (paired) \tabularnewline
Difference: Mean1 - Mean2 & 0.00707547169811391 \tabularnewline
t-stat & 0.121748031930213 \tabularnewline
df & 211 \tabularnewline
p-value & 0.903214441770657 \tabularnewline
H0 value & 0 \tabularnewline
Alternative & two.sided \tabularnewline
CI Level & 0.95 \tabularnewline
CI & [-0.107486295291553,0.121637238687781] \tabularnewline
F-test to compare two variances \tabularnewline
F-stat & 1.01964748680943 \tabularnewline
df & 211 \tabularnewline
p-value & 0.887754656059172 \tabularnewline
H0 value & 1 \tabularnewline
Alternative & two.sided \tabularnewline
CI Level & 0.95 \tabularnewline
CI & [0.777919286383706,1.33648955046471] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=308492&T=1

[TABLE]
[ROW][C]Two Sample t-test (paired)[/C][/ROW]
[ROW][C]Difference: Mean1 - Mean2[/C][C]0.00707547169811391[/C][/ROW]
[ROW][C]t-stat[/C][C]0.121748031930213[/C][/ROW]
[ROW][C]df[/C][C]211[/C][/ROW]
[ROW][C]p-value[/C][C]0.903214441770657[/C][/ROW]
[ROW][C]H0 value[/C][C]0[/C][/ROW]
[ROW][C]Alternative[/C][C]two.sided[/C][/ROW]
[ROW][C]CI Level[/C][C]0.95[/C][/ROW]
[ROW][C]CI[/C][C][-0.107486295291553,0.121637238687781][/C][/ROW]
[ROW][C]F-test to compare two variances[/C][/ROW]
[ROW][C]F-stat[/C][C]1.01964748680943[/C][/ROW]
[ROW][C]df[/C][C]211[/C][/ROW]
[ROW][C]p-value[/C][C]0.887754656059172[/C][/ROW]
[ROW][C]H0 value[/C][C]1[/C][/ROW]
[ROW][C]Alternative[/C][C]two.sided[/C][/ROW]
[ROW][C]CI Level[/C][C]0.95[/C][/ROW]
[ROW][C]CI[/C][C][0.777919286383706,1.33648955046471][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=308492&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=308492&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Two Sample t-test (paired)
Difference: Mean1 - Mean20.00707547169811391
t-stat0.121748031930213
df211
p-value0.903214441770657
H0 value0
Alternativetwo.sided
CI Level0.95
CI[-0.107486295291553,0.121637238687781]
F-test to compare two variances
F-stat1.01964748680943
df211
p-value0.887754656059172
H0 value1
Alternativetwo.sided
CI Level0.95
CI[0.777919286383706,1.33648955046471]







Welch Two Sample t-test (paired)
Difference: Mean1 - Mean20.00707547169811391
t-stat0.121748031930213
df211
p-value0.903214441770657
H0 value0
Alternativetwo.sided
CI Level0.95
CI[-0.107486295291553,0.121637238687781]

\begin{tabular}{lllllllll}
\hline
Welch Two Sample t-test (paired) \tabularnewline
Difference: Mean1 - Mean2 & 0.00707547169811391 \tabularnewline
t-stat & 0.121748031930213 \tabularnewline
df & 211 \tabularnewline
p-value & 0.903214441770657 \tabularnewline
H0 value & 0 \tabularnewline
Alternative & two.sided \tabularnewline
CI Level & 0.95 \tabularnewline
CI & [-0.107486295291553,0.121637238687781] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=308492&T=2

[TABLE]
[ROW][C]Welch Two Sample t-test (paired)[/C][/ROW]
[ROW][C]Difference: Mean1 - Mean2[/C][C]0.00707547169811391[/C][/ROW]
[ROW][C]t-stat[/C][C]0.121748031930213[/C][/ROW]
[ROW][C]df[/C][C]211[/C][/ROW]
[ROW][C]p-value[/C][C]0.903214441770657[/C][/ROW]
[ROW][C]H0 value[/C][C]0[/C][/ROW]
[ROW][C]Alternative[/C][C]two.sided[/C][/ROW]
[ROW][C]CI Level[/C][C]0.95[/C][/ROW]
[ROW][C]CI[/C][C][-0.107486295291553,0.121637238687781][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=308492&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=308492&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Welch Two Sample t-test (paired)
Difference: Mean1 - Mean20.00707547169811391
t-stat0.121748031930213
df211
p-value0.903214441770657
H0 value0
Alternativetwo.sided
CI Level0.95
CI[-0.107486295291553,0.121637238687781]







Wilcoxon Signed-Rank Test with continuity correction (paired)
W10361
p-value0.992856359498385
H0 value0
Alternativetwo.sided
Kolmogorov-Smirnov Test to compare Distributions of two Samples
KS Statistic0.0377358490566038
p-value0.998179970238421
Kolmogorov-Smirnov Test to compare Distributional Shape of two Samples
KS Statistic0.0424528301886792
p-value0.991006998506659

\begin{tabular}{lllllllll}
\hline
Wilcoxon Signed-Rank Test with continuity correction (paired) \tabularnewline
W & 10361 \tabularnewline
p-value & 0.992856359498385 \tabularnewline
H0 value & 0 \tabularnewline
Alternative & two.sided \tabularnewline
Kolmogorov-Smirnov Test to compare Distributions of two Samples \tabularnewline
KS Statistic & 0.0377358490566038 \tabularnewline
p-value & 0.998179970238421 \tabularnewline
Kolmogorov-Smirnov Test to compare Distributional Shape of two Samples \tabularnewline
KS Statistic & 0.0424528301886792 \tabularnewline
p-value & 0.991006998506659 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=308492&T=3

[TABLE]
[ROW][C]Wilcoxon Signed-Rank Test with continuity correction (paired)[/C][/ROW]
[ROW][C]W[/C][C]10361[/C][/ROW]
[ROW][C]p-value[/C][C]0.992856359498385[/C][/ROW]
[ROW][C]H0 value[/C][C]0[/C][/ROW]
[ROW][C]Alternative[/C][C]two.sided[/C][/ROW]
[ROW][C]Kolmogorov-Smirnov Test to compare Distributions of two Samples[/C][/ROW]
[ROW][C]KS Statistic[/C][C]0.0377358490566038[/C][/ROW]
[ROW][C]p-value[/C][C]0.998179970238421[/C][/ROW]
[ROW][C]Kolmogorov-Smirnov Test to compare Distributional Shape of two Samples[/C][/ROW]
[ROW][C]KS Statistic[/C][C]0.0424528301886792[/C][/ROW]
[ROW][C]p-value[/C][C]0.991006998506659[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=308492&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=308492&T=3

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Wilcoxon Signed-Rank Test with continuity correction (paired)
W10361
p-value0.992856359498385
H0 value0
Alternativetwo.sided
Kolmogorov-Smirnov Test to compare Distributions of two Samples
KS Statistic0.0377358490566038
p-value0.998179970238421
Kolmogorov-Smirnov Test to compare Distributional Shape of two Samples
KS Statistic0.0424528301886792
p-value0.991006998506659



Parameters (Session):
par1 = 1 ; par2 = 2 ; par3 = 0.95 ; par4 = two.sided ; par5 = paired ; par6 = 0.0 ;
Parameters (R input):
par1 = 1 ; par2 = 2 ; par3 = 0.95 ; par4 = two.sided ; par5 = paired ; par6 = 0.0 ;
R code (references can be found in the software module):
par6 <- '0.0'
par5 <- 'unpaired'
par4 <- 'two.sided'
par3 <- '0.95'
par2 <- '2'
par1 <- '1'
par1 <- as.numeric(par1) #column number of first sample
par2 <- as.numeric(par2) #column number of second sample
par3 <- as.numeric(par3) #confidence (= 1 - alpha)
if (par5 == 'unpaired') paired <- FALSE else paired <- TRUE
par6 <- as.numeric(par6) #H0
z <- t(y)
if (par1 == par2) stop('Please, select two different column numbers')
if (par1 < 1) stop('Please, select a column number greater than zero for the first sample')
if (par2 < 1) stop('Please, select a column number greater than zero for the second sample')
if (par1 > length(z[1,])) stop('The column number for the first sample should be smaller')
if (par2 > length(z[1,])) stop('The column number for the second sample should be smaller')
if (par3 <= 0) stop('The confidence level should be larger than zero')
if (par3 >= 1) stop('The confidence level should be smaller than zero')
(r.t <- t.test(z[,par1],z[,par2],var.equal=TRUE,alternative=par4,paired=paired,mu=par6,conf.level=par3))
(v.t <- var.test(z[,par1],z[,par2],conf.level=par3))
(r.w <- t.test(z[,par1],z[,par2],var.equal=FALSE,alternative=par4,paired=paired,mu=par6,conf.level=par3))
(w.t <- wilcox.test(z[,par1],z[,par2],alternative=par4,paired=paired,mu=par6,conf.level=par3))
(ks.t <- ks.test(z[,par1],z[,par2],alternative=par4))
m1 <- mean(z[,par1],na.rm=T)
m2 <- mean(z[,par2],na.rm=T)
mdiff <- m1 - m2
newsam1 <- z[!is.na(z[,par1]),par1]
newsam2 <- z[,par2]+mdiff
newsam2 <- newsam2[!is.na(newsam2)]
(ks1.t <- ks.test(newsam1,newsam2,alternative=par4))
mydf <- data.frame(cbind(z[,par1],z[,par2]))
colnames(mydf) <- c('Variable 1','Variable 2')
bitmap(file='test1.png')
boxplot(mydf, notch=TRUE, ylab='value',main=main)
dev.off()
bitmap(file='test2.png')
qqnorm(z[,par1],main='Normal QQplot - Variable 1')
qqline(z[,par1])
dev.off()
bitmap(file='test3.png')
qqnorm(z[,par2],main='Normal QQplot - Variable 2')
qqline(z[,par2])
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,paste('Two Sample t-test (',par5,')',sep=''),2,TRUE)
a<-table.row.end(a)
if(!paired){
a<-table.row.start(a)
a<-table.element(a,'Mean of Sample 1',header=TRUE)
a<-table.element(a,r.t$estimate[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Mean of Sample 2',header=TRUE)
a<-table.element(a,r.t$estimate[[2]])
a<-table.row.end(a)
} else {
a<-table.row.start(a)
a<-table.element(a,'Difference: Mean1 - Mean2',header=TRUE)
a<-table.element(a,r.t$estimate)
a<-table.row.end(a)
}
a<-table.row.start(a)
a<-table.element(a,'t-stat',header=TRUE)
a<-table.element(a,r.t$statistic[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'df',header=TRUE)
a<-table.element(a,r.t$parameter[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-value',header=TRUE)
a<-table.element(a,r.t$p.value)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'H0 value',header=TRUE)
a<-table.element(a,r.t$null.value[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Alternative',header=TRUE)
a<-table.element(a,r.t$alternative)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'CI Level',header=TRUE)
a<-table.element(a,attr(r.t$conf.int,'conf.level'))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'CI',header=TRUE)
a<-table.element(a,paste('[',r.t$conf.int[1],',',r.t$conf.int[2],']',sep=''))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'F-test to compare two variances',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'F-stat',header=TRUE)
a<-table.element(a,v.t$statistic[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'df',header=TRUE)
a<-table.element(a,v.t$parameter[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-value',header=TRUE)
a<-table.element(a,v.t$p.value)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'H0 value',header=TRUE)
a<-table.element(a,v.t$null.value[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Alternative',header=TRUE)
a<-table.element(a,v.t$alternative)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'CI Level',header=TRUE)
a<-table.element(a,attr(v.t$conf.int,'conf.level'))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'CI',header=TRUE)
a<-table.element(a,paste('[',v.t$conf.int[1],',',v.t$conf.int[2],']',sep=''))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,paste('Welch Two Sample t-test (',par5,')',sep=''),2,TRUE)
a<-table.row.end(a)
if(!paired){
a<-table.row.start(a)
a<-table.element(a,'Mean of Sample 1',header=TRUE)
a<-table.element(a,r.w$estimate[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Mean of Sample 2',header=TRUE)
a<-table.element(a,r.w$estimate[[2]])
a<-table.row.end(a)
} else {
a<-table.row.start(a)
a<-table.element(a,'Difference: Mean1 - Mean2',header=TRUE)
a<-table.element(a,r.w$estimate)
a<-table.row.end(a)
}
a<-table.row.start(a)
a<-table.element(a,'t-stat',header=TRUE)
a<-table.element(a,r.w$statistic[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'df',header=TRUE)
a<-table.element(a,r.w$parameter[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-value',header=TRUE)
a<-table.element(a,r.w$p.value)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'H0 value',header=TRUE)
a<-table.element(a,r.w$null.value[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Alternative',header=TRUE)
a<-table.element(a,r.w$alternative)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'CI Level',header=TRUE)
a<-table.element(a,attr(r.w$conf.int,'conf.level'))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'CI',header=TRUE)
a<-table.element(a,paste('[',r.w$conf.int[1],',',r.w$conf.int[2],']',sep=''))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
myWlabel <- 'Wilcoxon Signed-Rank Test'
if (par5=='unpaired') myWlabel = 'Wilcoxon Rank-Sum Test (Mann–Whitney U test)'
a<-table.element(a,paste(myWlabel,' with continuity correction (',par5,')',sep=''),2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'W',header=TRUE)
a<-table.element(a,w.t$statistic[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-value',header=TRUE)
a<-table.element(a,w.t$p.value)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'H0 value',header=TRUE)
a<-table.element(a,w.t$null.value[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Alternative',header=TRUE)
a<-table.element(a,w.t$alternative)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Kolmogorov-Smirnov Test to compare Distributions of two Samples',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'KS Statistic',header=TRUE)
a<-table.element(a,ks.t$statistic[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-value',header=TRUE)
a<-table.element(a,ks.t$p.value)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Kolmogorov-Smirnov Test to compare Distributional Shape of two Samples',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'KS Statistic',header=TRUE)
a<-table.element(a,ks1.t$statistic[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-value',header=TRUE)
a<-table.element(a,ks1.t$p.value)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable2.tab')