| B2mean | R Documentation |
Bayesian comparison of two means
B2mean(
var1,
var2,
n.iter = 11000,
n.burnin = 1000,
n.thin = 1,
prior.norm = c(0, 0.001, 0, 0.001),
prior.gamma = c(0.5, 0.5, 0.5, 0.5)
)
var1 |
variable 1 |
var2 |
= variable 2 |
n.iter |
number of iteration |
n.burnin |
number of iteration used in the update of the model |
n.thin |
n thin |
prior.norm |
normal parameters for priors of means 1 and 2 - two parameters each (mean, precision) |
prior.gamma |
gamma parameters for priors of tau 1 and tau 2 - two parameters each (shape, rate) |
precision is the inverse of variance
list with Stats (descriptive stats) and MCMC (inference)
JuG
x <- rnorm(200, 2.1, .4)
y <- rnorm(200, 2, .4)
B2mean(var1=x, var2=y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.