mkStruct {pwr4exp} | R Documentation |
Building Design Matrices and Covariance Structures for Linear Mixed Models
Description
Constructs design matrices for fixed and random effects, along with variance-covariance structures for random effects (G-side) and residuals (R-side).
Usage
mkStruct(formula, data, corcall)
Arguments
formula |
a model formula. |
data |
a data frame containing the variables used in the model. |
corcall |
a |
Value
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.
[Package pwr4exp version 1.0.0 Index]