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. Set to
NULLfor GLMMs.- 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.- relReCovs
a logical indicating if the components of
reCovsrepresent relative covariance matrices (in which case they are scaled bysc^2).