mkReTrms {pwr4exp}R Documentation

Design Matrices and Variance Components for Random Effects

Description

Adapted from lme4, this function constructs the design matrix (Z), variance-covariance matrix (G), etc.

Usage

mkReTrms(
  bars,
  fr,
  drop.unused.levels = TRUE,
  reorder.terms = FALSE,
  reorder.vars = FALSE
)

Arguments

bars

a list of parsed random-effects terms

fr

a model frame in which to evaluate these terms

drop.unused.levels

(logical) drop unused factor levels?

reorder.terms

arrange random effects terms in decreasing order of number of groups (factor levels)?

reorder.vars

arrange columns of individual random effects terms in alphabetical order?

Value

A list with the following components:


[Package pwr4exp version 1.0.0 Index]