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 computationFri, 21 Dec 2012 18:12:50 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Dec/21/t1356131730j3rh12wf40x3ugq.htm/, Retrieved Fri, 19 Apr 2024 21:55:13 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=204388, Retrieved Fri, 19 Apr 2024 21:55:13 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact78
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] [] [2012-12-21 23:12:50] [da7c95f16c64cb676a9e51b1b6b79fc0] [Current]
- RMPD    [Histogram] [] [2012-12-21 23:38:45] [15cbcfe738d59edaf37329746b028204]
Feedback Forum

Post a new message
Dataseries X:
235.1	37
280.7	30
264.6	47
240.7	35
201.4	30
240.8	43
241.1	82
223.8	40
206.1	47
174.7	19
203.3	52
220.5	136
299.5	80
347.4	42
338.3	54
327.7	66
351.6	81
396.6	63
438.8	137
395.6	72
363.5	107
378.8	58
357	36
369	52
464.8	79
479.1	77
431.3	54
366.5	84
326.3	48
355.1	96
331.6	83
261.3	66
249	61
205.5	53
235.6	30
240.9	74
264.9	69
253.8	59
232.3	42
193.8	65
177	70
213.2	100
207.2	63
180.6	105
188.6	82
175.4	81
199	75
179.6	102
225.8	121
234	98
200.2	76
183.6	77
178.2	63
203.2	37
208.5	35
191.8	23
172.8	40
148	29
159.4	37
154.5	51
213.2	20
196.4	28
182.8	13
176.4	22
153.6	25
173.2	13
171	16
151.2	13
161.9	16
157.2	17
201.7	9
236.4	17
356.1	25
398.3	14
403.7	8
384.6	7
365.8	10
368.1	7
367.9	10
347	3
343.3	
292.9	
311.5	
300.9	
366.9	
356.9	
329.7	
316.2	
269	
289.3	
266.2	
253.6	
233.8	
228.4	
253.6	
260.1	
306.6	
309.2	
309.5	
271	
279.9	
317.9	
298.4	
246.7	
227.3	
209.1	
259.9	
266	
320.6	
308.5	
282.2	
262.7	
263.5	
313.1	
284.3	
252.6	
250.3	
246.5	
312.7	
333.2	
446.4	
511.6	
515.5	
506.4	
483.2	
522.3	
509.8	
460.7	
405.8	
375	
378.5	
406.8	
467.8	
469.8	
429.8	
355.8	
332.7	
378	
360.5	
334.7	
319.5	
323.1	
363.6	
352.1	
411.9	
388.6	
416.4	
360.7	
338	
417.2	
388.4	
371.1	
331.5	
353.7	
396.7	
447	
533.5	
565.4	
542.3	
488.7	
467.1	
531.3	
496.1	
444	
403.4	
386.3	
394.1	
404.1	
462.1	
448.1	
432.3	
386.3	
395.2	
421.9	
382.9	
384.2	
345.5	
323.4	
372.6	
376	
462.7	
487	
444.2	
399.3	
394.9	
455.4	
414	
375.5	
347	
339.4	
385.8	
378.8	
451.8	
446.1	
422.5	
383.1	
352.8	
445.3	
367.5	
355.1	
326.2	
319.8	
331.8	
340.9	
394.1	
417.2	
369.9	
349.2	
321.4	
405.7	
342.9	
316.5	
284.2	
270.9	
288.8	
278.8	
324.4	
310.9	
299	
273	
279.3	
359.2	
305	
282.1	
250.3	
246.5	
257.9	
266.5	
315.9	
318.4	
295.4	
266.4	
245.8	
362.8	
324.9	
294.2	
289.5	
295.2	
290.3	
272	
307.4	
328.7	
292.9	
249.1	
230.4	
361.5	
321.7	
277.2	
260.7	
251	
257.6	
241.8	
287.5	
292.3	
274.7	
254.2	
230	
339	
318.2	
287	
295.8	
284	
271	
262.7	
340.6	
379.4	
373.3	
355.2	
338.4	
466.9	
451	
422	
429.2	
425.9	
460.7	
463.6	
541.4	
544.2	
517.5	
469.4	
439.4	
549	
533	
506.1	
484	
457	
481.5	
469.5	
544.7	
541.2	
521.5	
469.7	
434.4	
542.6	
517.3	
485.7	
465.8	
447	
426.6	
411.6	
467.5	
484.5	
451.2	
417.4	
379.9	
484.7	
455	
420.8	
416.5	
376.3	
405.6	
405.8	
500.8	
514	
475.5	
430.1	
414.4	
538	
526	
488.5	
520.2	
504.4	
568.5	
610.6	
818	
830.9	
835.9	
782	
762.3	
856.9	
820.9	
769.6	
752.2	
724.4	
723.1	
719.5	
817.4	
803.3	
752.5	
689	
630.4	
765.5	
757.7	
732.2	
702.6	
683.3	
709.5	
702.2	
784.8	
810.9	
755.6	
656.8	
615.1	
745.3	
694.1	
675.7	
643.7	
622.1	
634.6	
588	
689.7	
673.9	
647.9	
568.8	
545.7	
632.6	
643.8	
593.1	
579.7	
546	
562.9	
572.5	




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Sir Maurice George Kendall' @ kendall.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Sir Maurice George Kendall' @ kendall.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=204388&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Maurice George Kendall' @ kendall.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=204388&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=204388&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 Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Sir Maurice George Kendall' @ kendall.wessa.net







Two Sample t-test (unpaired)
Mean of Sample 1346.437365591398
Mean of Sample 2256.252150537634
t-stat7.01450516485208
df742
p-value5.20370653493265e-12
H0 value0
Alternativetwo.sided
CI Level0.95
CI[64.9448643608523,115.425565746675]
F-test to compare two variances
F-stat0.449274074727946
df371
p-value2.92867391191162e-14
H0 value1
Alternativetwo.sided
CI Level0.95
CI[0.366430006234627,0.550847885785338]

\begin{tabular}{lllllllll}
\hline
Two Sample t-test (unpaired) \tabularnewline
Mean of Sample 1 & 346.437365591398 \tabularnewline
Mean of Sample 2 & 256.252150537634 \tabularnewline
t-stat & 7.01450516485208 \tabularnewline
df & 742 \tabularnewline
p-value & 5.20370653493265e-12 \tabularnewline
H0 value & 0 \tabularnewline
Alternative & two.sided \tabularnewline
CI Level & 0.95 \tabularnewline
CI & [64.9448643608523,115.425565746675] \tabularnewline
F-test to compare two variances \tabularnewline
F-stat & 0.449274074727946 \tabularnewline
df & 371 \tabularnewline
p-value & 2.92867391191162e-14 \tabularnewline
H0 value & 1 \tabularnewline
Alternative & two.sided \tabularnewline
CI Level & 0.95 \tabularnewline
CI & [0.366430006234627,0.550847885785338] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=204388&T=1

[TABLE]
[ROW][C]Two Sample t-test (unpaired)[/C][/ROW]
[ROW][C]Mean of Sample 1[/C][C]346.437365591398[/C][/ROW]
[ROW][C]Mean of Sample 2[/C][C]256.252150537634[/C][/ROW]
[ROW][C]t-stat[/C][C]7.01450516485208[/C][/ROW]
[ROW][C]df[/C][C]742[/C][/ROW]
[ROW][C]p-value[/C][C]5.20370653493265e-12[/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][64.9448643608523,115.425565746675][/C][/ROW]
[ROW][C]F-test to compare two variances[/C][/ROW]
[ROW][C]F-stat[/C][C]0.449274074727946[/C][/ROW]
[ROW][C]df[/C][C]371[/C][/ROW]
[ROW][C]p-value[/C][C]2.92867391191162e-14[/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.366430006234627,0.550847885785338][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=204388&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=204388&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 (unpaired)
Mean of Sample 1346.437365591398
Mean of Sample 2256.252150537634
t-stat7.01450516485208
df742
p-value5.20370653493265e-12
H0 value0
Alternativetwo.sided
CI Level0.95
CI[64.9448643608523,115.425565746675]
F-test to compare two variances
F-stat0.449274074727946
df371
p-value2.92867391191162e-14
H0 value1
Alternativetwo.sided
CI Level0.95
CI[0.366430006234627,0.550847885785338]







Welch Two Sample t-test (unpaired)
Mean of Sample 1346.437365591398
Mean of Sample 2256.252150537634
t-stat7.01450516485208
df648.374166242284
p-value5.81971068562155e-12
H0 value0
Alternativetwo.sided
CI Level0.95
CI[64.9389082546137,115.431521852913]

\begin{tabular}{lllllllll}
\hline
Welch Two Sample t-test (unpaired) \tabularnewline
Mean of Sample 1 & 346.437365591398 \tabularnewline
Mean of Sample 2 & 256.252150537634 \tabularnewline
t-stat & 7.01450516485208 \tabularnewline
df & 648.374166242284 \tabularnewline
p-value & 5.81971068562155e-12 \tabularnewline
H0 value & 0 \tabularnewline
Alternative & two.sided \tabularnewline
CI Level & 0.95 \tabularnewline
CI & [64.9389082546137,115.431521852913] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=204388&T=2

[TABLE]
[ROW][C]Welch Two Sample t-test (unpaired)[/C][/ROW]
[ROW][C]Mean of Sample 1[/C][C]346.437365591398[/C][/ROW]
[ROW][C]Mean of Sample 2[/C][C]256.252150537634[/C][/ROW]
[ROW][C]t-stat[/C][C]7.01450516485208[/C][/ROW]
[ROW][C]df[/C][C]648.374166242284[/C][/ROW]
[ROW][C]p-value[/C][C]5.81971068562155e-12[/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][64.9389082546137,115.431521852913][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=204388&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=204388&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 (unpaired)
Mean of Sample 1346.437365591398
Mean of Sample 2256.252150537634
t-stat7.01450516485208
df648.374166242284
p-value5.81971068562155e-12
H0 value0
Alternativetwo.sided
CI Level0.95
CI[64.9389082546137,115.431521852913]







Wicoxon rank sum test with continuity correction (unpaired)
W87529
p-value3.95296412684792e-10
H0 value0
Alternativetwo.sided
Kolmogorov-Smirnov Test to compare Distributions of two Samples
KS Statistic0.43010752688172
p-value0
Kolmogorov-Smirnov Test to compare Distributional Shape of two Samples
KS Statistic0.327956989247312
p-value0

\begin{tabular}{lllllllll}
\hline
Wicoxon rank sum test with continuity correction (unpaired) \tabularnewline
W & 87529 \tabularnewline
p-value & 3.95296412684792e-10 \tabularnewline
H0 value & 0 \tabularnewline
Alternative & two.sided \tabularnewline
Kolmogorov-Smirnov Test to compare Distributions of two Samples \tabularnewline
KS Statistic & 0.43010752688172 \tabularnewline
p-value & 0 \tabularnewline
Kolmogorov-Smirnov Test to compare Distributional Shape of two Samples \tabularnewline
KS Statistic & 0.327956989247312 \tabularnewline
p-value & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=204388&T=3

[TABLE]
[ROW][C]Wicoxon rank sum test with continuity correction (unpaired)[/C][/ROW]
[ROW][C]W[/C][C]87529[/C][/ROW]
[ROW][C]p-value[/C][C]3.95296412684792e-10[/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.43010752688172[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Kolmogorov-Smirnov Test to compare Distributional Shape of two Samples[/C][/ROW]
[ROW][C]KS Statistic[/C][C]0.327956989247312[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=204388&T=3

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

As an alternative you can also use a QR Code:  

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

Wicoxon rank sum test with continuity correction (unpaired)
W87529
p-value3.95296412684792e-10
H0 value0
Alternativetwo.sided
Kolmogorov-Smirnov Test to compare Distributions of two Samples
KS Statistic0.43010752688172
p-value0
Kolmogorov-Smirnov Test to compare Distributional Shape of two Samples
KS Statistic0.327956989247312
p-value0



Parameters (Session):
par1 = 1 ; par2 = 2 ; par3 = 0.95 ; par4 = two.sided ; par5 = unpaired ; par6 = 0.0 ;
Parameters (R input):
par1 = 1 ; par2 = 2 ; par3 = 0.95 ; par4 = two.sided ; par5 = unpaired ; par6 = 0.0 ;
R code (references can be found in the software module):
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)
a<-table.element(a,paste('Wicoxon rank sum test 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')