Description Details Author(s) Examples
Similarly to lavaan.survey, this package ties together lavaan (for SEM) and survey (for complex survey designs). Contrary to lavaan.survey, however, this experimental package allows the lavaan model to have been fitted by FIML. It does not do estimation, only standard errors. Since the point estimates as well as se's will be affected by weights, weights cannot be accounted for.
Package: | lavaan.survey.fiml |
Type: | Package |
Version: | 0.1 |
Date: | 2015-03-25 |
License: | GPL |
Daniel Oberski
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | library(lavaan)
###### A single group example #######
# European Social Survey Denmark data (SRS)
data(ess.dk, package = "lavaan.survey")
# A saturated model with reciprocal effects from Saris & Gallhofer
dk.model <- "
socialTrust ~ 1 + systemTrust + fearCrime
systemTrust ~ 1 + socialTrust + efficacy
socialTrust ~~ systemTrust
"
lavaan.fit <- lavaan(dk.model, data=ess.dk, auto.var=TRUE, estimator="MLM")
summary(lavaan.fit)
sqrt(diag(vcov_complex(lavaan.fit, ids = ess.dk$intnum)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.