Estimate across-group heterogeneity of means
hhommodel(y, g, group, p1)
a numeric vector of data
a group membership vector, of the same length as y
the index of the group
number of groups used to pool sample variance
A vector (s2,df,muw,t2w,s2w), where
s2 is the pooled variance
df is the degree of freedom of the t-quantiles
muw is the estimate mean of the group means
t2w is the estimate variance of the group means
s2w is the estimate within-group variance
This function estimates parameters in a hierarchical model for normally distributed groups, where the across-group model for means is normal and the variance is the same across groups.