Constructs design matrices for fixed and random effects, along with variance-covariance structures for random effects (G-side) and residuals (R-side).
mkStruct(formula, data, correlation)A list containing:
data: Processed data frame with NA values omitted.
fxTrms: Fixed-effects design structure, including model frame and design matrix.
reTrms: Random-effects structure (if applicable), including grouping factors,
design matrices, and variance-covariance matrix.
rTrms: Residual structure (R-side variance-covariance components).
formula: Expanded model formula.
a model formula.
a data frame containing the variables used in the model.
a corStruct object created by corClasses functions.
If NULL, an identity matrix is assumed.