Learn R Programming

fabCI (version 0.2)

hhommodel: Hierarchical homoscedastic model estimates

Description

Estimate across-group heterogeneity of means

Usage

hhommodel(y, g, group, p1)

Arguments

y

a numeric vector of data

g

a group membership vector, of the same length as y

group

the index of the group

p1

number of groups used to pool sample variance

Value

A vector (s2,df,muw,t2w,s2w), where

  1. s2 is the pooled variance

  2. df is the degree of freedom of the t-quantiles

  3. muw is the estimate mean of the group means

  4. t2w is the estimate variance of the group means

  5. s2w is the estimate within-group variance

Details

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.