MeanHM | R Documentation |
To compute the mean values of subgroups based on a Bayesian hierarchical model.
MeanHM(x,sigma)
x |
Numeric vector of observations for the subgroups. |
sigma |
hyper-parameter. to be estimated or can be given. |
'theta': population mean.
'sigma': population standard deviation.
x1 <- rnorm(100,2,1)
x2 <- rnorm(100,3,1.5)
x3 <- rnorm(100,4,1.9)
x <- cbind(x1,x2,x3)
MeanHM(x,sigma=0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.