Make Variance and Correlation Components of Covariance
mkVarCorr.RdComputes from reCovs the variance and correlation components of
random effect covariance matrices.
Arguments
- sc
a numeric vector of length 1 giving the residual standard deviation for LMMs.
- cnms
a list of character vectors giving component dimnames, used only to determine
ncandnmsif those are missing.- nc
an integer vector giving component dimensions (number of columns).
- theta
a numeric vector giving covariance parameters (lower triangular entries of relative Cholesky factors in column-major order), used only to determine
reCovswhen that is missing.- nms
a character vector giving component names.
- reCovs
a list of
Covarianceobjects.- is_lmm
a logical indicating if the model is an LMM as opposed to a GLMM, determining if
scis used.