Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_Bayesian_Two_Sample_Test.wasp
Title produced by softwareBayesian Two Sample Test
Date of computationSat, 28 Nov 2015 12:46:31 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2015/Nov/28/t1448714834mpfqcjnv02i3i6y.htm/, Retrieved Tue, 14 May 2024 22:59:56 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=284376, Retrieved Tue, 14 May 2024 22:59:56 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact123
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Bayesian Two Sample Test] [Bayesian test wer...] [2015-11-28 12:46:31] [8acc4c3875a0c63009483cc7dfb4f316] [Current]
-   PD    [Bayesian Two Sample Test] [Bayesian test wer...] [2015-12-01 13:54:44] [2ba32e9656c7c3fdddad3ba3f1588288]
- RM        [Multiple Regression] [Multiple regression] [2015-12-04 13:41:12] [4e6b221caf797a012ce5465db674848b]
- RM D        [] [Multiple regression] [-0001-11-30 00:00:00] [74be16979710d4c4e7c6647856088456]
- RM D        [] [Multiple regressi...] [-0001-11-30 00:00:00] [74be16979710d4c4e7c6647856088456]
- RM        [Multiple Regression] [Multiple regression] [2015-12-04 13:58:21] [4e6b221caf797a012ce5465db674848b]
Feedback Forum

Post a new message
Dataseries X:
21.6 20.7 6.5 7.1
21.6 20.7 6.2 6.8
21.6 20.7 6.3 6.5
19.4 18 6.4 6.1
19.4 18 6.3 5.7
19.4 18 6.1 5.6
15.9 16.9 5.7 5.7
15.9 16.9 5.6 5.8
15.9 16.9 5.6 5.9
21.8 24.4 6.2 6.3
21.8 24.4 6.3 6.5
21.8 24.4 6.2 6.3
17.6 15.5 6 6.4
17.6 15.5 5.9 6.3
17.6 15.5 6 6.3
19 18.4 6.1 6.2
19 18.4 6.1 6.2
19 18.4 6 6.2
16.3 16.2 6 6.4
16.3 16.2 6 6.5
16.3 16.2 5.9 6.5
22.5 20.6 6.1 6.7
22.5 20.6 6.3 6.7
22.5 20.6 6.5 6.3
23.8 19.8 7.1 6.2
23.8 19.8 7.5 6.3
23.8 19.8 7.6 6.5
24.6 21.6 7.6 6.9
24.6 21.6 7.4 7
24.6 21.6 7.1 7
22.7 22.3 6.9 6.9
22.7 22.3 6.8 6.7
22.7 22.3 6.8 6.7
25.2 23.7 7.3 7.1
25.2 23.7 7.3 7.1
25.2 23.7 7.3 6.9
26.4 22.1 7.2 7
26.4 22.1 7.2 6.9
26.4 22.1 7.4 6.9
26 26.6 7.7 6.8
26 26.6 7.8 6.5
26 26.6 7.9 6.2
23.2 23.5 7.9 5.9
23.2 23.5 7.8 5.8
23.2 23.5 7.7 6.1
22.7 19.6 7.9 7
22.7 19.6 7.8 7.4
22.7 19.6 7.6 7.3
24 20 7.5 7.2
24 20 7.4 7.1
24 20 7.7 7.1
20.7 20.1 8.2 7.1
20.7 20.1 8.4 7.1
20.7 20.1 8.4 6.9
23.8 16 8.2 6.6
23.8 16 8 6.4
23.8 16 8 6.5
27.1 18.9 8.2 6.9
27.1 18.9 8.2 6.9
27.1 18.9 8 6.7




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time86 seconds
R Server'Sir Ronald Aylmer Fisher' @ fisher.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 & 86 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ fisher.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=284376&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]86 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ fisher.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=284376&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=284376&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 time86 seconds
R Server'Sir Ronald Aylmer Fisher' @ fisher.wessa.net







Bayesian Two Sample Test
> summary(r, credMass = par4, compValeff = par3)
            mean median   mode HDI%  HDIlo  HDIup compVal %>compVal
mu1       22.267 22.267 22.270   95 21.431  23.09                  
mu2       20.225 20.223 20.210   95 19.462  21.00                  
muDiff     2.042  2.043  2.023   95  0.906   3.17       0     100.0
sigma1     3.162  3.140  3.091   95  2.582   3.81                  
sigma2     2.925  2.905  2.870   95  2.383   3.52                  
sigmaDiff  0.237  0.237  0.250   95 -0.591   1.08       0      71.6
nu        46.409 38.103 23.097   95  5.024 110.37                  
log10nu    1.570  1.581  1.620   95  0.985   2.13                  
effSz      0.673  0.672  0.669   95  0.280   1.05       0     100.0

\begin{tabular}{lllllllll}
\hline
Bayesian Two Sample Test \tabularnewline
> summary(r, credMass = par4, compValeff = par3)
            mean median   mode HDI%  HDIlo  HDIup compVal %>compVal
mu1       22.267 22.267 22.270   95 21.431  23.09                  
mu2       20.225 20.223 20.210   95 19.462  21.00                  
muDiff     2.042  2.043  2.023   95  0.906   3.17       0     100.0
sigma1     3.162  3.140  3.091   95  2.582   3.81                  
sigma2     2.925  2.905  2.870   95  2.383   3.52                  
sigmaDiff  0.237  0.237  0.250   95 -0.591   1.08       0      71.6
nu        46.409 38.103 23.097   95  5.024 110.37                  
log10nu    1.570  1.581  1.620   95  0.985   2.13                  
effSz      0.673  0.672  0.669   95  0.280   1.05       0     100.0
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=284376&T=1

[TABLE]
[ROW][C]Bayesian Two Sample Test[/C][/ROW]
[ROW][C]
> summary(r, credMass = par4, compValeff = par3)
            mean median   mode HDI%  HDIlo  HDIup compVal %>compVal
mu1       22.267 22.267 22.270   95 21.431  23.09                  
mu2       20.225 20.223 20.210   95 19.462  21.00                  
muDiff     2.042  2.043  2.023   95  0.906   3.17       0     100.0
sigma1     3.162  3.140  3.091   95  2.582   3.81                  
sigma2     2.925  2.905  2.870   95  2.383   3.52                  
sigmaDiff  0.237  0.237  0.250   95 -0.591   1.08       0      71.6
nu        46.409 38.103 23.097   95  5.024 110.37                  
log10nu    1.570  1.581  1.620   95  0.985   2.13                  
effSz      0.673  0.672  0.669   95  0.280   1.05       0     100.0
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=284376&T=1

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

As an alternative you can also use a QR Code:  

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

Bayesian Two Sample Test
> summary(r, credMass = par4, compValeff = par3)
            mean median   mode HDI%  HDIlo  HDIup compVal %>compVal
mu1       22.267 22.267 22.270   95 21.431  23.09                  
mu2       20.225 20.223 20.210   95 19.462  21.00                  
muDiff     2.042  2.043  2.023   95  0.906   3.17       0     100.0
sigma1     3.162  3.140  3.091   95  2.582   3.81                  
sigma2     2.925  2.905  2.870   95  2.383   3.52                  
sigmaDiff  0.237  0.237  0.250   95 -0.591   1.08       0      71.6
nu        46.409 38.103 23.097   95  5.024 110.37                  
log10nu    1.570  1.581  1.620   95  0.985   2.13                  
effSz      0.673  0.672  0.669   95  0.280   1.05       0     100.0



Parameters (Session):
par1 = 1 ; par2 = 2 ; par3 = 0 ; par4 = 0.95 ; par5 = unpaired ; par6 = no ;
Parameters (R input):
par1 = 1 ; par2 = 2 ; par3 = 0 ; par4 = 0.95 ; par5 = unpaired ; par6 = no ; par7 = ; par8 = ; par9 = ; par10 = ; par11 = ; par12 = ; par13 = ; par14 = ; par15 = ; par16 = ;
R code (references can be found in the software module):
library(BEST)
par1 <- as.numeric(par1) #column number of first sample
par2 <- as.numeric(par2) #column number of second sample
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
if(par6=='yes') {
par7 <- as.numeric(par7)
par8 <- as.numeric(par8)
par9 <- as.numeric(par9)
par10 <- as.numeric(par10)
par11 <- as.numeric(par11)
par12 <- as.numeric(par12)
par13 <- as.numeric(par13)
par14 <- as.numeric(par14)
par15 <- as.numeric(par15)
par16 <- as.numeric(par16)
}
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(par6=='no') {
if(par5=='unpaired') {
(r <- BESTmcmc(z[,par1],z[,par2], parallel=F))
}
if(par5=='paired') {
(r <- BESTmcmc(z[,par1]-z[,par2], parallel=F))
}
} else {
yy <- cbind(z[1,],z[2,])
if(par5=='unpaired') {
(r <- BESTmcmc(z[,par1],z[,par2], priors=list(muM = c(par7,par8), muSD = c(par9,par10), sigmaMode = c(par11,par12), sigmaSD = c(par13,par14), nuMean = par15, nuSD = par16), parallel=F))
}
if(par5=='paired') {
(r <- BESTmcmc(z[,par1]-z[,par2], priors=list(muM = c(par7,par8), muSD = c(par9,par10), sigmaMode = c(par11,par12), sigmaSD = c(par13,par14), nuMean = par15, nuSD = par16), parallel=F))
}
}
bitmap(file='test2.png')
plot(r, credMass=par4, compVal=par3)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Bayesian Two Sample Test',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste('
',RC.texteval('summary(r, credMass=par4, compValeff=par3)'),'
',sep=''))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')