Description Usage Arguments Details Value Author(s)
Estimate across-group heterogeneity of means and variances
1 | hhetmodel(y, g)
|
y |
a numeric vector of data |
g |
a group membership vector, of the same length as y |
This function estimates parameters in a hierarchical model for normally distributed groups, where the across-group model for means is normal and the across group model for variances is inverse-gamma.
A vector (mu,t2,s20,nu0), where
mu is the mean of the group means
t2 is the variance of the group means
the the distribution of group variances is inverse-gamma(nu0/2,nu0 s20/2)
Peter Hoff
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.