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 computationSun, 15 Nov 2015 10:54:16 +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/15/t1447584937rzak6a1s8gpe08n.htm/, Retrieved Thu, 16 May 2024 00:22:20 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=283336, Retrieved Thu, 16 May 2024 00:22:20 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact206
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Bayesian Two Sample Test] [] [2015-11-15 10:54:16] [63a9f0ea7bb98050796b649e85481845] [Current]
Feedback Forum

Post a new message
Dataseries X:
5.77	3.88
5.33	3.55
4.59	3.29
4.33	2.59
3.66	2.33
4.48	3.59




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time13 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 & 13 seconds \tabularnewline
R Server & 'Sir Maurice George Kendall' @ kendall.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=283336&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]13 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=283336&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=283336&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 time13 seconds
R Server'Sir Maurice George Kendall' @ kendall.wessa.net







Bayesian Two Sample Test
> summary(r, credMass = par4, compValeff = par3)
            mean median   mode HDI%  HDIlo  HDIup compVal %>compVal
mu1        4.690  4.690  4.702   97  3.898   5.45                  
mu2        3.216  3.217  3.242   97  2.536   3.89                  
muDiff     1.474  1.475  1.492   97  0.467   2.48       0      99.9
sigma1     0.938  0.879  0.776   97  0.405   1.71                  
sigma2     0.776  0.721  0.636   97  0.323   1.46                  
sigmaDiff  0.162  0.153  0.175   97 -0.790   1.19       0      66.6
nu        34.314 25.655 10.097   97  1.002 108.38                  
log10nu    1.376  1.409  1.455   97  0.488   2.14                  
effSz      1.776  1.745  1.741   97  0.392   3.29       0      99.9

\begin{tabular}{lllllllll}
\hline
Bayesian Two Sample Test \tabularnewline
> summary(r, credMass = par4, compValeff = par3)
            mean median   mode HDI%  HDIlo  HDIup compVal %>compVal
mu1        4.690  4.690  4.702   97  3.898   5.45                  
mu2        3.216  3.217  3.242   97  2.536   3.89                  
muDiff     1.474  1.475  1.492   97  0.467   2.48       0      99.9
sigma1     0.938  0.879  0.776   97  0.405   1.71                  
sigma2     0.776  0.721  0.636   97  0.323   1.46                  
sigmaDiff  0.162  0.153  0.175   97 -0.790   1.19       0      66.6
nu        34.314 25.655 10.097   97  1.002 108.38                  
log10nu    1.376  1.409  1.455   97  0.488   2.14                  
effSz      1.776  1.745  1.741   97  0.392   3.29       0      99.9
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=283336&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        4.690  4.690  4.702   97  3.898   5.45                  
mu2        3.216  3.217  3.242   97  2.536   3.89                  
muDiff     1.474  1.475  1.492   97  0.467   2.48       0      99.9
sigma1     0.938  0.879  0.776   97  0.405   1.71                  
sigma2     0.776  0.721  0.636   97  0.323   1.46                  
sigmaDiff  0.162  0.153  0.175   97 -0.790   1.19       0      66.6
nu        34.314 25.655 10.097   97  1.002 108.38                  
log10nu    1.376  1.409  1.455   97  0.488   2.14                  
effSz      1.776  1.745  1.741   97  0.392   3.29       0      99.9
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=283336&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=283336&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        4.690  4.690  4.702   97  3.898   5.45                  
mu2        3.216  3.217  3.242   97  2.536   3.89                  
muDiff     1.474  1.475  1.492   97  0.467   2.48       0      99.9
sigma1     0.938  0.879  0.776   97  0.405   1.71                  
sigma2     0.776  0.721  0.636   97  0.323   1.46                  
sigmaDiff  0.162  0.153  0.175   97 -0.790   1.19       0      66.6
nu        34.314 25.655 10.097   97  1.002 108.38                  
log10nu    1.376  1.409  1.455   97  0.488   2.14                  
effSz      1.776  1.745  1.741   97  0.392   3.29       0      99.9



Parameters (Session):
par1 = 1 ; par2 = 2 ; par3 = 0 ; par4 = 0.97 ; par5 = unpaired ; par6 = yes ; par7 = 4.688 ; par8 = 3.214 ; par9 = 0.7 ; par10 = 0.7 ; par11 = 1.022 ; par12 = 0.832 ; par13 = 0.7 ; par14 = 0.7 ; par15 = 29 ; par16 = 29 ;
Parameters (R input):
par1 = 1 ; par2 = 2 ; par3 = 0 ; par4 = 0.97 ; par5 = unpaired ; par6 = yes ; par7 = 4.688 ; par8 = 3.214 ; par9 = 0.7 ; par10 = 0.7 ; par11 = 1.022 ; par12 = 0.832 ; par13 = 0.7 ; par14 = 0.7 ; par15 = 29 ; par16 = 29 ;
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')