nlme (version 3.1-1)

MEdims: Calculate dimensions in mixed-effects

Description

Calculate the dimensions of various arrays used to represent a mixed-effects model.

Usage

MEdims(groups, ncols)

Arguments

groups
a factor or list of factors describing the grouping of the observations
ncols
a vector of positive integers listing the number of columns in the model matrices at each level of random effects terms or fixed effects