| plot | R Documentation |
Generates diagnostic plots for a fitted INLAvaan model.
## S4 method for signature 'INLAvaan,ANY'
plot(
x,
y,
type = c("marg_pdf", "sn_fit", "sn_fit_log"),
params = "all",
nrow = NULL,
ncol = NULL,
use_ggplot = TRUE,
points = FALSE,
...
)
x |
An object of class INLAvaan. |
y |
Not used. |
type |
Character. One of |
params |
Character vector of parameter names to plot, or |
nrow, ncol |
Integer. Number of rows/columns for the facet grid when
|
use_ggplot |
Logical. When |
points |
Logical. When |
... |
Additional arguments (currently unused). |
diagnostics(), summary()
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)
# Posterior marginal densities (default)
plot(fit)
# Skew-normal fit diagnostic for a single parameter
plot(fit, type = "sn_fit", params = "visual=~x1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.