[R-pkgs] New package: `lavaan' for latent variable analysis (including structural equation modeling)

From: Yves Rosseel <Yves.Rosseel_at_UGent.be>
Date: Wed, 19 May 2010 14:26:32 +0200


Dear R-users,

A new package called `lavaan' (for latent variable analysis) has been uploaded to CRAN. The current version of lavaan (0.3-1) 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

Some notable features of lavaan:

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
-



R-packages mailing list
R-packages_at_r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages Received on Thu 20 May 2010 - 20:38:45 EST

This archive was generated by hypermail 2.2.0 : Thu 20 May 2010 - 20:40:03 EST