| vcov | R Documentation |
Extract the posterior variance-covariance matrix of model parameters from a
fitted INLAvaan model.
## S4 method for signature 'INLAvaan'
vcov(object, type = c("lavaan", "theta"), ...)
object |
An object of class INLAvaan. |
type |
Character. |
... |
Currently unused. |
A square numeric matrix.
summary(), coef(), standardisedsolution()
HS.model <- "
visual =~ x1 + x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9
"
utils::data("HolzingerSwineford1939", package = "lavaan")
fit <- acfa(HS.model, HolzingerSwineford1939, std.lv = TRUE, nsamp = 100,
test = "none", verbose = FALSE)
# Default: posterior covariance of lavaan parameters
vcov(fit)
# Internal parameterisation (Laplace approximation)
vcov(fit, type = "theta")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.