View source: R/get_parameters.R
| get_parameters.blavaan | R Documentation |
Returns the coefficients (or posterior samples for blavaan
models with summary = FALSE) from a structural equation model.
## S3 method for class 'blavaan'
get_parameters(x, summary = FALSE, standardize = FALSE, ...)
## S3 method for class 'lavaan'
get_parameters(x, standardize = FALSE, ...)
x |
A model of class |
summary |
Logical. For blavaan models, indicates whether the full
posterior samples ( |
standardize |
Logical. Only |
... |
If |
For blavaan models with summary = FALSE, the posterior samples
as data frame, with one row per draw (chains pooled) and one column per
free or defined parameter. If standardize = TRUE, fixed parameters are
included, too. Else, a data frame with the columns Parameter, Estimate
and Component.
m <- lavaan::cfa("visual =~ x1 + x2 + x3", data = lavaan::HolzingerSwineford1939)
get_parameters(m, standardize = TRUE, type = "std.lv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.