Latent Variable Analysis

Fit a variety of latent variable models, including confirmatory factor analysis, structural equation modeling and latent growth curve models.


lavaan

lavaan is a free, open source R package for latent variable analysis. You can use lavaan to estimate a large variety of multivariate statistical models, including path analysis, confirmatory factor analysis, structural equation modeling and growth curve models.

The lavaan package is developed to provide useRs, researchers and teachers a free open-source, but commercial-quality package for latent variable modeling. The long-term goal of lavaan is to implement all the state-of-the-art capabilities that are currently available in commercial packages. However, lavaan is still under development, and much work still needs to be done.

Installation

Install the stable version from CRAN:

install.packages("lavaan")

Or the development version from GitHub:

# install.packages("remotes")
remotes::install_github("yrosseel/lavaan")

Usage

To get a first impression of how lavaan works in practice, consider the following example of a SEM model (the Political Democracy Example from Bollen's 1989 book):

library(lavaan)

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 covariances
     y1 ~~ y5
     y2 ~~ y4 + y6
     y3 ~~ y7
     y4 ~~ y8
     y6 ~~ y8
'
fit <- sem(model, data = PoliticalDemocracy)
summary(fit)

More information can be found on the website: https://lavaan.org

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("lavaan")

0.7-3 by Yves Rosseel, 13 days ago


https://lavaan.ugent.be


Report a bug at https://github.com/yrosseel/lavaan/issues


Browse source code at https://github.com/cran/lavaan


Authors: Yves Rosseel [aut, cre] (ORCID: , Terrence D. Jorgensen [aut] (ORCID: , Luc De Wilde [aut] , Daniel Oberski [ctb] , Jarrett Byrnes [ctb] , Leonard Vanbrabant [ctb] , Victoria Savalei [ctb] , Ed Merkle [ctb] , Michael Hallquist [ctb] , Mijke Rhemtulla [ctb] , Myrsini Katsikatsou [ctb] , Mariska Barendse [ctb] , Nicholas Rockwood [ctb] , Florian Scharf [ctb] , Han Du [ctb] , Haziq Jamil [ctb] , Franz Classe [ctb]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports methods, parallel, stats4, stats, utils, graphics, grDevices, MASS, mnormt, pbivnorm, numDeriv, quadprog


Imported by AlignLV, Bayesrel, BifactorIndicesCalculator, EFA.dimensions, EGAnet, EMAS, EMgaussian, EpiQuestionR, FAfA, FCO, GRShiny, ICED, IIVpredictor, INLAvaan, IPV, InterconectaR, JWileymisc, LSMjml, MBESS, MCCM, MIIVsem, MiCT, MonteCarloSEM, NRMstatsML, NlsyLinks, PROsetta, PsyMetricTools, PsychoMatic, RMediation, RSP, Rnest, SEMdeep, SEMsens, SEMsensitivity, ShortForm, Spower, TSQLEM, ThesiStats, ThurMod, autoFC, bain, betaselectr, bifactory, blavaan, bmem, bmemLavaan, bnpa, bruceR, cSEM, calms, ccpsyc, conmet, covsim, crosslag, cvsem, detectR, discnorm, diy.sem.plot, dySEM, esem, ezCutoffs, faoutlier, ggdiagram, ggsem, gimme, gorica, jmv, kfa, konfound, latentFactoR, lavaan.printer, lavaan.shiny, lavaanExtra, lavaanPlot, lavaangui, lavinteract, lcsm, lsl, lvnet, manymome, measureR, medmod, metaSEM, misty, mmibain, modelbpp, modelscompete4, modsem, multid, multilevelTools, negligible, networksem, nlsem, nonnest2, petersenlab, phantSEM, pinsearch, plavaan, plssem, pompom, powRICLPM, power4mome, powerNLSEM, projectLSA, pscore, psychonetrics, pwr2ppl, qgraph, quest, regmed, reliacoef, restriktor, rmedsem, robustDIF, scaledescr, semEffect, semFromKeys, semPlot, semTests, semboottools, semdrw, semeqmodels, semfindr, semhelpinghands, seminr, semlbci, semlrtp, semmcci, semnova, semptools, semrulesid, semtree, silp, simstandard, siren, sphereML, stdmod, stim, tabledown, thurstonianIRT, tidySEM, umx, wsMed.

Depended on by CoTiMA, EffectLiteR, RAMpath, RSA, RSAtools, SEMgraph, WebPower, coefficientalpha, dpm, eatRep, fSRM, influence.SEM, latcontrol, lavaan.mi, lessSEM, merDeriv, pathmodelfit, profileR, regsem, rsem, semTools, simsem.

Suggested by AICcmodavg, BIFIEsurvey, CIEE, DMAR, EFAtools, EasyMx, ItemRest, JSmediation, LSAmitR, MIIVefa, MplusTrees, Nestimate, Omisc, R4VN, REMLA, STARTS, TAM, ackwards, aridagri, bayestestR, bfw, bootnet, broom, broom.helpers, circumplex, dagitty, dyadMLM, easyRasch2, effectsize, facomplex, flps, idiographic, insight, intraclass, lingamr, lslx, lvmPlot, mantar, manymome.table, mariposa, medfit, mellio, mitml, mlstats, modelsummary, netCoin, nmfkc, parameters, paramtest, performance, primer, psych, psychTools, report, see, semPower, sirt, smriti, specr, stuart, surveyframe, tidystats, unusualprofile, worcs.

Enhanced by LAM.


See at CRAN