standardizedPosterior | R Documentation |
Standardized posterior distribution of a latent variable model.
standardizedPosterior(object, ...)
object |
An object of class |
... |
Additional arguments passed to lavaan's
|
A matrix containing standardized posterior draws, where rows are draws and columns are parameters.
The only allowed standardizedSolution()
arguments are type,
cov.std, remove.eq, remove.ineq, and remove.def. Other arguments are not
immediately suited to posterior distributions.
## Not run:
data(PoliticalDemocracy, package = "lavaan")
model <- '
# latent variable definitions
ind60 =~ x1 + x2 + x3
dem60 =~ y1 + a*y2 + b*y3 + c*y4
dem65 =~ y5 + a*y6 + b*y7 + c*y8
# regressions
dem60 ~ ind60
dem65 ~ ind60 + dem60
# residual correlations
y1 ~~ y5
y2 ~~ y4 + y6
y3 ~~ y7
y4 ~~ y8
y6 ~~ y8
'
fit <- bsem(model, data = PoliticalDemocracy,
dp = dpriors(nu = "normal(5, 10)"))
standardizedPosterior(fit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.