| mkStruct | R Documentation |
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)
formula |
a model formula. |
data |
a data frame containing the variables used in the model. |
correlation |
a |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.