hhommodel: Hierarchical homoscedastic model estimates

Description Usage Arguments Details Value Author(s)

View source: R/multifabCIhom.R

Description

Estimate across-group heterogeneity of means

Usage

1
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

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.

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

Author(s)

Chaoyu Yu


pdhoff/fabCI documentation built on Jan. 18, 2021, 8:39 p.m.