getModelCov | R Documentation |
A function mostly for internal processing but can be used to extract either
the model covariance matrix (Cov) or the projection matrix for transformations made
from the covariance matrix (Pcov), which is basically the square-root of
the covariance matrix. This matrix is the model covariance used for estimation,
not the residual covariance matrix (see getResCov
).
There are also options for S3 or S4 format versions, or
a forcing of symmetry for Pcov.
getModelCov(
fit,
type = c("Cov", "Pcov"),
format = c("S3", "S4"),
forceSym = TRUE
)
fit |
Object from |
type |
Whether the Cov or Pcov matrix is returned |
format |
Whether an S3 or S4 format is returned |
forceSym |
Logical value for whether a symmetric matrix should be returned for Pcov, even if Pcov was triangular as a solution. |
Michael Collyer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.