lavaan.survey (version 1.1.3.1)

ess.dk: Subset of four variables and interviewer number from the European Social Survey, round 4 (2008) Danish sample.

Description

Consists of indices of political and social trust, political efficacy, and fear of crime. The interviewer number was also recorded. The ESS round 4 in Denmark was a face-to-face probability survey with simple random sampling.

Usage

data(ess.dk)

Arguments

Format

A data frame with 1546 observations of 6 variables.

Source

This dataset was retrieved from http://ess.nsd.uib.no/ess/round4/ and converted to an R dataset.

References

Jowell, R., Roberts, C., Fitzgerald, R., & Eva, G. (2007). Measuring attitudes cross-nationally: Lessons from the european social survey. SAGE. Oberski, D.L. (2014). lavaan.survey: An R Package for Complex Survey Analysis of Structural Equation Models. Journal of Statistical Software, 57(1), 1-27. http://www.jstatsoft.org/v57/i01/.

See Also

lavaan.survey

Examples

Run this code
data(ess.dk)
head(ess.dk)

# A saturated model with reciprocal effects from Saris & Gallhofer (2007)
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)

# Create a survey design object with interviewer clustering
survey.design <- svydesign(ids=~intnum, prob=~1, data=ess.dk)

survey.fit <- lavaan.survey(lavaan.fit=lavaan.fit, survey.design=survey.design)
summary(survey.fit)

Run the code above in your browser using DataLab