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 computationSat, 05 Mar 2022 07:21:15 +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/2022/Mar/05/t1646461277mk49iqnjeb4x9h3.htm/, Retrieved Mon, 13 May 2024 23:27:38 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Mon, 13 May 2024 23:27:38 +0200
QR Codes:

Original text written by user:555
IsPrivate?No (this computation is public)
User-defined keywords555
Estimated Impact0
Dataseries X:
'1'	'Trt'	'NoCue'	'Neut'	433.5
'1'	'Trt'	'NoCue'	'Cong'	423.9
'1'	'Trt'	'NoCue'	'Inc'	490.9
'1'	'Trt'	'Cent'	'Neut'	385.2
'1'	'Trt'	'Cent'	'Cong'	368.6
'1'	'Trt'	'Cent'	'Inc'	473.4
'1'	'Trt'	'Double'	'Neut'	378.9
'1'	'Trt'	'Double'	'Cong'	378.9
'1'	'Trt'	'Double'	'Inc'	455.4
'1'	'Trt'	'Spatial'	'Neut'	328.1
'1'	'Trt'	'Spatial'	'Cong'	350.2
'1'	'Trt'	'Spatial'	'Inc'	407.2
'2'	'Trt'	'NoCue'	'Neut'	436.4
'2'	'Trt'	'NoCue'	'Cong'	441.9
'2'	'Trt'	'NoCue'	'Inc'	483.3
'2'	'Trt'	'Cent'	'Neut'	374.2
'2'	'Trt'	'Cent'	'Cong'	389.8
'2'	'Trt'	'Cent'	'Inc'	455.7
'2'	'Trt'	'Double'	'Neut'	357.0
'2'	'Trt'	'Double'	'Cong'	384.2
'2'	'Trt'	'Double'	'Inc'	433.0
'2'	'Trt'	'Spatial'	'Neut'	339.4
'2'	'Trt'	'Spatial'	'Cong'	337.6
'2'	'Trt'	'Spatial'	'Inc'	421.0
'3'	'Trt'	'NoCue'	'Neut'	428.7
'3'	'Trt'	'NoCue'	'Cong'	428.1
'3'	'Trt'	'NoCue'	'Inc'	503.3
'3'	'Trt'	'Cent'	'Neut'	371.2
'3'	'Trt'	'Cent'	'Cong'	368.0
'3'	'Trt'	'Cent'	'Inc'	436.5
'3'	'Trt'	'Double'	'Neut'	392.3
'3'	'Trt'	'Double'	'Cong'	356.3
'3'	'Trt'	'Double'	'Inc'	432.7
'3'	'Trt'	'Spatial'	'Neut'	331.3
'3'	'Trt'	'Spatial'	'Cong'	334.6
'3'	'Trt'	'Spatial'	'Inc'	431.4
'4'	'Trt'	'NoCue'	'Neut'	415.5
'4'	'Trt'	'NoCue'	'Cong'	433.3
'4'	'Trt'	'NoCue'	'Inc'	498.5
'4'	'Trt'	'Cent'	'Neut'	384.8
'4'	'Trt'	'Cent'	'Cong'	383.2
'4'	'Trt'	'Cent'	'Inc'	438.5
'4'	'Trt'	'Double'	'Neut'	370.3
'4'	'Trt'	'Double'	'Cong'	399.4
'4'	'Trt'	'Double'	'Inc'	445.9
'4'	'Trt'	'Spatial'	'Neut'	320.7
'4'	'Trt'	'Spatial'	'Cong'	342.8
'4'	'Trt'	'Spatial'	'Inc'	407.0
'5'	'Trt'	'NoCue'	'Neut'	429.1
'5'	'Trt'	'NoCue'	'Cong'	436.9
'5'	'Trt'	'NoCue'	'Inc'	499.0
'5'	'Trt'	'Cent'	'Neut'	378.1
'5'	'Trt'	'Cent'	'Cong'	394.6
'5'	'Trt'	'Cent'	'Inc'	471.4
'5'	'Trt'	'Double'	'Neut'	370.6
'5'	'Trt'	'Double'	'Cong'	370.7
'5'	'Trt'	'Double'	'Inc'	447.1
'5'	'Trt'	'Spatial'	'Neut'	332.5
'5'	'Trt'	'Spatial'	'Cong'	329.9
'5'	'Trt'	'Spatial'	'Inc'	418.3
'6'	'Trt'	'NoCue'	'Neut'	435.3
'6'	'Trt'	'NoCue'	'Cong'	422.7
'6'	'Trt'	'NoCue'	'Inc'	480.0
'6'	'Trt'	'Cent'	'Neut'	390.7
'6'	'Trt'	'Cent'	'Cong'	366.9
'6'	'Trt'	'Cent'	'Inc'	461.5
'6'	'Trt'	'Double'	'Neut'	354.1
'6'	'Trt'	'Double'	'Cong'	385.6
'6'	'Trt'	'Double'	'Inc'	435.4
'6'	'Trt'	'Spatial'	'Neut'	336.3
'6'	'Trt'	'Spatial'	'Cong'	335.0
'6'	'Trt'	'Spatial'	'Inc'	399.6
'7'	'Trt'	'NoCue'	'Neut'	435.4
'7'	'Trt'	'NoCue'	'Cong'	412.3
'7'	'Trt'	'NoCue'	'Inc'	484.9
'7'	'Trt'	'Cent'	'Neut'	387.8
'7'	'Trt'	'Cent'	'Cong'	380.5
'7'	'Trt'	'Cent'	'Inc'	443.4
'7'	'Trt'	'Double'	'Neut'	361.9
'7'	'Trt'	'Double'	'Cong'	346.4
'7'	'Trt'	'Double'	'Inc'	452.1
'7'	'Trt'	'Spatial'	'Neut'	351.1
'7'	'Trt'	'Spatial'	'Cong'	345.6
'7'	'Trt'	'Spatial'	'Inc'	424.7
'8'	'Trt'	'NoCue'	'Neut'	402.9
'8'	'Trt'	'NoCue'	'Cong'	412.7
'8'	'Trt'	'NoCue'	'Inc'	502.4
'8'	'Trt'	'Cent'	'Neut'	387.8
'8'	'Trt'	'Cent'	'Cong'	358.2
'8'	'Trt'	'Cent'	'Inc'	437.8
'8'	'Trt'	'Double'	'Neut'	357.4
'8'	'Trt'	'Double'	'Cong'	401.8
'8'	'Trt'	'Double'	'Inc'	459.5
'8'	'Trt'	'Spatial'	'Neut'	360.1
'8'	'Trt'	'Spatial'	'Cong'	335.6
'8'	'Trt'	'Spatial'	'Inc'	405.1
'9'	'Trt'	'NoCue'	'Neut'	419.2
'9'	'Trt'	'NoCue'	'Cong'	420.1
'9'	'Trt'	'NoCue'	'Inc'	500.0
'9'	'Trt'	'Cent'	'Neut'	386.1
'9'	'Trt'	'Cent'	'Cong'	381.4
'9'	'Trt'	'Cent'	'Inc'	460.0
'9'	'Trt'	'Double'	'Neut'	370.2
'9'	'Trt'	'Double'	'Cong'	369.4
'9'	'Trt'	'Double'	'Inc'	445.4
'9'	'Trt'	'Spatial'	'Neut'	351.2
'9'	'Trt'	'Spatial'	'Cong'	336.6
'9'	'Trt'	'Spatial'	'Inc'	422.3
'10'	'Trt'	'NoCue'	'Neut'	441.6
'10'	'Trt'	'NoCue'	'Cong'	432.2
'10'	'Trt'	'NoCue'	'Inc'	516.9
'10'	'Trt'	'Cent'	'Neut'	382.5
'10'	'Trt'	'Cent'	'Cong'	376.9
'10'	'Trt'	'Cent'	'Inc'	442.9
'10'	'Trt'	'Double'	'Neut'	385.6
'10'	'Trt'	'Double'	'Cong'	385.9
'10'	'Trt'	'Double'	'Inc'	457.8
'10'	'Trt'	'Spatial'	'Neut'	342.2
'10'	'Trt'	'Spatial'	'Cong'	331.5
'10'	'Trt'	'Spatial'	'Inc'	408.1
'11'	'Ctrl'	'NoCue'	'Neut'	446.7
'11'	'Ctrl'	'NoCue'	'Cong'	433.8
'11'	'Ctrl'	'NoCue'	'Inc'	517.3
'11'	'Ctrl'	'Cent'	'Neut'	380.3
'11'	'Ctrl'	'Cent'	'Cong'	371.6
'11'	'Ctrl'	'Cent'	'Inc'	493.7
'11'	'Ctrl'	'Double'	'Neut'	390.9
'11'	'Ctrl'	'Double'	'Cong'	394.2
'11'	'Ctrl'	'Double'	'Inc'	482.1
'11'	'Ctrl'	'Spatial'	'Neut'	345.2
'11'	'Ctrl'	'Spatial'	'Cong'	330.7
'11'	'Ctrl'	'Spatial'	'Inc'	391.5
'12'	'Ctrl'	'NoCue'	'Neut'	420.7
'12'	'Ctrl'	'NoCue'	'Cong'	442.7
'12'	'Ctrl'	'NoCue'	'Inc'	513.3
'12'	'Ctrl'	'Cent'	'Neut'	374.7
'12'	'Ctrl'	'Cent'	'Cong'	373.0
'12'	'Ctrl'	'Cent'	'Inc'	486.7
'12'	'Ctrl'	'Double'	'Neut'	380.0
'12'	'Ctrl'	'Double'	'Cong'	374.9
'12'	'Ctrl'	'Double'	'Inc'	495.7
'12'	'Ctrl'	'Spatial'	'Neut'	352.6
'12'	'Ctrl'	'Spatial'	'Cong'	347.6
'12'	'Ctrl'	'Spatial'	'Inc'	424.4
'13'	'Ctrl'	'NoCue'	'Neut'	422.1
'13'	'Ctrl'	'NoCue'	'Cong'	424.2
'13'	'Ctrl'	'NoCue'	'Inc'	503.6
'13'	'Ctrl'	'Cent'	'Neut'	364.8
'13'	'Ctrl'	'Cent'	'Cong'	364.3
'13'	'Ctrl'	'Cent'	'Inc'	474.6
'13'	'Ctrl'	'Double'	'Neut'	383.8
'13'	'Ctrl'	'Double'	'Cong'	363.6
'13'	'Ctrl'	'Double'	'Inc'	477.1
'13'	'Ctrl'	'Spatial'	'Neut'	338.0
'13'	'Ctrl'	'Spatial'	'Cong'	332.8
'13'	'Ctrl'	'Spatial'	'Inc'	420.3
'14'	'Ctrl'	'NoCue'	'Neut'	431.7
'14'	'Ctrl'	'NoCue'	'Cong'	436.4
'14'	'Ctrl'	'NoCue'	'Inc'	481.9
'14'	'Ctrl'	'Cent'	'Neut'	376.7
'14'	'Ctrl'	'Cent'	'Cong'	388.7
'14'	'Ctrl'	'Cent'	'Inc'	484.4
'14'	'Ctrl'	'Double'	'Neut'	383.4
'14'	'Ctrl'	'Double'	'Cong'	363.5
'14'	'Ctrl'	'Double'	'Inc'	467.4
'14'	'Ctrl'	'Spatial'	'Neut'	315.9
'14'	'Ctrl'	'Spatial'	'Cong'	354.7
'14'	'Ctrl'	'Spatial'	'Inc'	408.6
'15'	'Ctrl'	'NoCue'	'Neut'	430.9
'15'	'Ctrl'	'NoCue'	'Cong'	446.8
'15'	'Ctrl'	'NoCue'	'Inc'	505.1
'15'	'Ctrl'	'Cent'	'Neut'	372.7
'15'	'Ctrl'	'Cent'	'Cong'	382.8
'15'	'Ctrl'	'Cent'	'Inc'	483.5
'15'	'Ctrl'	'Double'	'Neut'	369.3
'15'	'Ctrl'	'Double'	'Cong'	378.1
'15'	'Ctrl'	'Double'	'Inc'	461.1
'15'	'Ctrl'	'Spatial'	'Neut'	342.6
'15'	'Ctrl'	'Spatial'	'Cong'	336.2
'15'	'Ctrl'	'Spatial'	'Inc'	421.7
'16'	'Ctrl'	'NoCue'	'Neut'	425.6
'16'	'Ctrl'	'NoCue'	'Cong'	417.5
'16'	'Ctrl'	'NoCue'	'Inc'	495.2
'16'	'Ctrl'	'Cent'	'Neut'	373.9
'16'	'Ctrl'	'Cent'	'Cong'	378.6
'16'	'Ctrl'	'Cent'	'Inc'	490.9
'16'	'Ctrl'	'Double'	'Neut'	381.9
'16'	'Ctrl'	'Double'	'Cong'	358.5
'16'	'Ctrl'	'Double'	'Inc'	464.4
'16'	'Ctrl'	'Spatial'	'Neut'	340.3
'16'	'Ctrl'	'Spatial'	'Cong'	351.1
'16'	'Ctrl'	'Spatial'	'Inc'	408.4
'17'	'Ctrl'	'NoCue'	'Neut'	421.6
'17'	'Ctrl'	'NoCue'	'Cong'	432.6
'17'	'Ctrl'	'NoCue'	'Inc'	502.8
'17'	'Ctrl'	'Cent'	'Neut'	386.0
'17'	'Ctrl'	'Cent'	'Cong'	389.3
'17'	'Ctrl'	'Cent'	'Inc'	487.0
'17'	'Ctrl'	'Double'	'Neut'	369.5
'17'	'Ctrl'	'Double'	'Cong'	368.7
'17'	'Ctrl'	'Double'	'Inc'	482.0
'17'	'Ctrl'	'Spatial'	'Neut'	350.8
'17'	'Ctrl'	'Spatial'	'Cong'	333.9
'17'	'Ctrl'	'Spatial'	'Inc'	421.7
'18'	'Ctrl'	'NoCue'	'Neut'	432.5
'18'	'Ctrl'	'NoCue'	'Cong'	413.6
'18'	'Ctrl'	'NoCue'	'Inc'	484.4
'18'	'Ctrl'	'Cent'	'Neut'	388.4
'18'	'Ctrl'	'Cent'	'Cong'	374.6
'18'	'Ctrl'	'Cent'	'Inc'	475.4
'18'	'Ctrl'	'Double'	'Neut'	380.8
'18'	'Ctrl'	'Double'	'Cong'	372.6
'18'	'Ctrl'	'Double'	'Inc'	464.2
'18'	'Ctrl'	'Spatial'	'Neut'	337.4
'18'	'Ctrl'	'Spatial'	'Cong'	338.3
'18'	'Ctrl'	'Spatial'	'Inc'	407.7
'19'	'Ctrl'	'NoCue'	'Neut'	436.6
'19'	'Ctrl'	'NoCue'	'Cong'	421.7
'19'	'Ctrl'	'NoCue'	'Inc'	494.7
'19'	'Ctrl'	'Cent'	'Neut'	393.5
'19'	'Ctrl'	'Cent'	'Cong'	393.9
'19'	'Ctrl'	'Cent'	'Inc'	482.2
'19'	'Ctrl'	'Double'	'Neut'	368.6
'19'	'Ctrl'	'Double'	'Cong'	384.2
'19'	'Ctrl'	'Double'	'Inc'	477.8
'19'	'Ctrl'	'Spatial'	'Neut'	344.0
'19'	'Ctrl'	'Spatial'	'Cong'	339.6
'19'	'Ctrl'	'Spatial'	'Inc'	392.7
'20'	'Ctrl'	'NoCue'	'Neut'	412.5
'20'	'Ctrl'	'NoCue'	'Cong'	424.3
'20'	'Ctrl'	'NoCue'	'Inc'	488.2
'20'	'Ctrl'	'Cent'	'Neut'	372.9
'20'	'Ctrl'	'Cent'	'Cong'	393.0
'20'	'Ctrl'	'Cent'	'Inc'	475.3
'20'	'Ctrl'	'Double'	'Neut'	384.2
'20'	'Ctrl'	'Double'	'Cong'	366.5
'20'	'Ctrl'	'Double'	'Inc'	460.0
'20'	'Ctrl'	'Spatial'	'Neut'	338.1
'20'	'Ctrl'	'Spatial'	'Cong'	372.3
'20'	'Ctrl'	'Spatial'	'Inc'	418.3




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
R Engine error message
Error in match.arg(alternative) : 
  'arg' should be one of "two.sided", "less", "greater"
Calls: t.test -> t.test.default -> match.arg
Execution halted

\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
R Engine error message & 
Error in match.arg(alternative) : 
  'arg' should be one of "two.sided", "less", "greater"
Calls: t.test -> t.test.default -> match.arg
Execution halted
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=&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] [ROW]R Engine error message[/C][C]
Error in match.arg(alternative) : 
  'arg' should be one of "two.sided", "less", "greater"
Calls: t.test -> t.test.default -> match.arg
Execution halted
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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
R Engine error message
Error in match.arg(alternative) : 
  'arg' should be one of "two.sided", "less", "greater"
Calls: t.test -> t.test.default -> match.arg
Execution halted



Parameters (Session):
par1 = 1 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = -1' OR 2+474-474-1=0+0+0+1 or 'fWn26Dss'=' ; par6 = 1 ;
Parameters (R input):
par1 = 1 ; par2 = 2 ; par3 = 0.95 ; par4 = 1 ; par5 = 1 ; 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)
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')