lavaan.survey.fiml-package: Complex survey standard errors (clustering and...

Description Details Author(s) Examples

Description

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.

Details

Package: lavaan.survey.fiml
Type: Package
Version: 0.1
Date: 2015-03-25
License: GPL

Author(s)

Daniel Oberski

Examples

 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)))

daob/lavaan.survey.fiml documentation built on May 14, 2019, 6:06 p.m.