[R-pkgs] lavaan version 0.4-8
Yves Rosseel
Yves.Rosseel at UGent.be
Wed Apr 27 11:39:20 CEST 2011
Dear R-users,
A new version of `lavaan' (for latent variable analysis) is now
available on CRAN. The current version of lavaan (0.4-8) can be used for
path analysis, confirmatory factor analysis, structural equation
modeling, and growth curve modeling.
More information can be found on the website: http://lavaan.org
To get a first impression of how the 'lavaan model syntax' looks like,
below is the full R code for fitting a SEM model:
## begin R Code ##
library(lavaan)
# The industrialization and Political Democracy Example
# Bollen (1989), page 332
model <- '
# latent variable definitions
ind60 =~ x1 + x2 + x3
dem60 =~ y1 + y2 + y3 + y4
dem65 =~ y5 + y6 + y7 + y8
# regressions
dem60 ~ ind60
dem65 ~ ind60 + dem60
# residual correlations
y1 ~~ y5
y2 ~~ y4 + y6
y3 ~~ y7
y4 ~~ y8
y6 ~~ y8
'
fit <- sem(model, data=PoliticalDemocracy)
summary(fit, fit.measures=TRUE)
## end R code ##
Please feel free to contact me directly with questions and comments.
Best,
Yves Rosseel.
--
Yves Rosseel -- http://www.da.ugent.be
Department of Data Analysis, Ghent University
Henri Dunantlaan 1, B-9000 Gent, Belgium
More information about the R-packages
mailing list