mkVarCorr function

Make Variance and Correlation Matrices from theta

Make Variance and Correlation Matrices from theta

Make variance and correlation matrices from theta

mkVarCorr(sc, cnms, nc, theta, nms)

Arguments

  • sc: scale factor (residual standard deviation).
  • cnms: component names.
  • nc: numeric vector: number of terms in each RE component.
  • theta: theta vector (lower-triangle of Cholesky factors).
  • nms: component names (FIXME: nms/cnms redundant: nms=names(cnms)?)

Returns

A matrix

See Also

VarCorr

  • Maintainer: Ben Bolker
  • License: GPL (>= 2)
  • Last published: 2025-03-26