Package: lavaan 0.6-20.2206

lavaan: Latent Variable Analysis

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

Authors:Yves Rosseel [aut, cre], Terrence D. Jorgensen [aut], 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]

lavaan_0.6-20.2206.tar.gz
lavaan_0.6-20.2206.zip(r-4.5)lavaan_0.6-20.2206.zip(r-4.4)lavaan_0.6-20.2206.zip(r-4.3)
lavaan_0.6-20.2206.tgz(r-4.4-any)lavaan_0.6-20.2206.tgz(r-4.3-any)
lavaan_0.6-20.2206.tar.gz(r-4.5-noble)lavaan_0.6-20.2206.tar.gz(r-4.4-noble)
lavaan_0.6-20.2206.tgz(r-4.4-emscripten)lavaan_0.6-20.2206.tgz(r-4.3-emscripten)
lavaan.pdf |lavaan.html
lavaan/json (API)

# Install 'lavaan' in R:
install.packages('lavaan', repos = c('https://yrosseel.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/yrosseel/lavaan/issues

Datasets:

On CRAN:

factor-analysisgrowth-curve-modelslatent-variablesmissing-datamultilevel-modelsmultivariate-analysispath-analysispsychometricsstatistical-modelingstructural-equation-modeling

139 exports 429 stars 16.57 score 5 dependencies 209 dependents 814 mentions 6.3k scripts 59.6k downloads

Last updated 2 days agofrom:3ec08ea0a6. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 11 2024
R-4.5-winOKOct 11 2024
R-4.5-linuxOKOct 11 2024
R-4.4-winOKOct 11 2024
R-4.4-macOKOct 11 2024
R-4.3-winOKOct 11 2024
R-4.3-macOKOct 11 2024

Exports:anovabootstrapLavaanbootstrapLRTcfacfaListchar2numcoefcor2covefaestfun.lavaanfitmeasuresfitMeasuresfittedfitted.valuesgetCovgrowthInformativeTestinginspectinspectSampleCovlav_constraints_parselav_data_updatelav_export_estimationlav_func_gradient_complexlav_func_gradient_simplelav_func_jacobian_complexlav_func_jacobian_simplelav_matrix_antidiag_idxlav_matrix_bdiaglav_matrix_commutationlav_matrix_commutation_mn_prelav_matrix_commutation_postlav_matrix_commutation_prelav_matrix_commutation_pre_postlav_matrix_covlav_matrix_diag_idxlav_matrix_diagh_idxlav_matrix_duplicationlav_matrix_duplication_ginvlav_matrix_duplication_ginv_postlav_matrix_duplication_ginv_prelav_matrix_duplication_ginv_pre_postlav_matrix_duplication_postlav_matrix_duplication_prelav_matrix_duplication_pre_postlav_matrix_lower2fulllav_matrix_orthogonal_complementlav_matrix_symmetric_sqrtlav_matrix_tracelav_matrix_upper2fulllav_matrix_veclav_matrix_vechlav_matrix_vech_col_idxlav_matrix_vech_idxlav_matrix_vech_reverselav_matrix_vech_row_idxlav_matrix_vechrlav_matrix_vechr_idxlav_matrix_vechr_reverselav_matrix_vechrulav_matrix_vechru_idxlav_matrix_vechru_reverselav_matrix_vechulav_matrix_vechu_idxlav_matrix_vechu_reverselav_matrix_vecrlav_model_get_parameterslav_model_impliedlav_model_set_parameterslav_model_vcov_selav_partable_addlav_partable_attributeslav_partable_completelav_partable_constraints_ceqlav_partable_constraints_ciqlav_partable_constraints_deflav_partable_dflav_partable_from_lmlav_partable_independencelav_partable_labelslav_partable_mergelav_partable_ndatlav_partable_nparlav_partable_unrestrictedlav_samplestats_from_datalavaanlavaanifylavaanListlavaanNameslavCorlavExportlavInspectlavListInspectlavListTechlavMatrixRepresentationlavNameslavOptionslavParseModelStringlavParTablelavPredictlavPredictYlavPredictY_cvlavResidualslavScoreslavTableslavTablesFitCflavTablesFitCmlavTablesFitCplavTechlavTestlavTestLRTlavTestScorelavTestWaldlogLikmodificationindicesmodificationIndicesmodindicesmplus2lavaanmplus2lavaan.modelSyntaxnobsparameterestimatesparameterEstimatesparametertableparameterTablepartableparTablepredictresidresidualssamsemsemListsimulateDatastandardizedsolutionstandardizedSolutionsummaryupdatevartablevarTablevcov

Dependencies:MASSmnormtnumDerivpbivnormquadprog

Readme and manuals

Help Manual

Help pageTopics
Bootstrapping a Lavaan ModelbootstrapLavaan bootstrapLRT
Fit Confirmatory Factor Analysis Modelscfa
Demo dataset for a illustrating a linear growth model.Demo.growth
Demo dataset for a illustrating a multilevel CFA.Demo.twolevel
Exploratory Factor Analysisefa rotation
Extract Empirical Estimating Functionsestfun.lavaan lavScores
Dataset for illustrating the InformativeTesting function.FacialBurns
Fit Measures for a Latent Variable Modelfitindices fitMeasures fitmeasures fitMeasures,lavaan-method fitmeasures,lavaan-method
Utility Functions For Covariance Matriceschar2num cor2cov getCov
Fit Growth Curve Modelsgrowth
Holzinger and Swineford Dataset (9 Variables)HolzingerSwineford1939
Testing order/inequality Constrained Hypotheses in SEMInformativeTesting informativetesting
Methods for output InformativeTesting()plot.InformativeTesting print.InformativeTesting
Observed Variable Correlation Matrix from a Model and DatainspectSampleCov
Utility Functions: Constraintslav_constraints_parse lav_partable_constraints_ceq lav_partable_constraints_ciq lav_partable_constraints_def
lavaan data functionslav_data_update
lav_export_estimationlav_export_estimation
Utility Functions: Gradient and Jacobianlav_func_gradient_complex lav_func_gradient_simple lav_func_jacobian_complex lav_func_jacobian_simple
Utility Functions: Matrices and Vectorslav_matrix_antidiag_idx lav_matrix_bdiag lav_matrix_commutation lav_matrix_commutation_mn_pre lav_matrix_commutation_post lav_matrix_commutation_pre lav_matrix_commutation_pre_post lav_matrix_cov lav_matrix_diagh_idx lav_matrix_diag_idx lav_matrix_duplication lav_matrix_duplication_ginv lav_matrix_duplication_ginv_post lav_matrix_duplication_ginv_pre lav_matrix_duplication_ginv_pre_post lav_matrix_duplication_post lav_matrix_duplication_pre lav_matrix_duplication_pre_post lav_matrix_lower2full lav_matrix_orthogonal_complement lav_matrix_symmetric_sqrt lav_matrix_trace lav_matrix_upper2full lav_matrix_vec lav_matrix_vech lav_matrix_vechr lav_matrix_vechru lav_matrix_vechru_idx lav_matrix_vechru_reverse lav_matrix_vechr_idx lav_matrix_vechr_reverse lav_matrix_vechu lav_matrix_vechu_idx lav_matrix_vechu_reverse lav_matrix_vech_col_idx lav_matrix_vech_idx lav_matrix_vech_reverse lav_matrix_vech_row_idx lav_matrix_vecr
lavaan model functionslav_model_get_parameters lav_model_implied lav_model_set_parameters lav_model_vcov_se
lavaan partable functionslav_partable_add lav_partable_attributes lav_partable_complete lav_partable_df lav_partable_from_lm lav_partable_independence lav_partable_labels lav_partable_merge lav_partable_ndat lav_partable_npar lav_partable_unrestricted
lavaan samplestats functionslav_samplestats_from_data
Fit a Latent Variable Modellavaan
Class For Representing A (Fitted) Latent Variable Modelanova,lavaan-method coef,lavaan-method fitted,lavaan-method fitted.values,lavaan-method lavaan-class logLik,lavaan-method nobs nobs,lavaan-method predict,lavaan-method resid,lavaan-method residuals,lavaan-method show,lavaan-method summary,lavaan-method update,lavaan-method vcov,lavaan-method
Fit List of Latent Variable ModelscfaList lavaanList semList
Class For Representing A List of (Fitted) Latent Variable Modelscoef,lavaanList-method lavaanList-class summary,lavaanList-method
Polychoric, polyserial and Pearson correlationslavCor
lavaan ExportlavExport
Inspect or extract information from a fitted lavaan objectinspect lavInspect lavTech
Inspect or extract information from a lavaanList objectlavListInspect lavListTech
lavaan matrix representationlavMatrixRepresentation
lavaan NameslavaanNames lavNames
lavaan OptionslavOptions lavoptions
Predict the values of latent variables (and their indicators).lavPredict lavpredict
Predict the values of y-variables given the values of x-variableslavPredictY
Determine an optimal lambda penalty value through cross-validationlavPredictY_cv
ResidualslavResidual lavResiduals
lavaan frequency tableslavTables
Pairwise maximum likelihood fit statisticslavTablesFit lavTablesFitCf lavTablesFitCm lavTablesFitCp
Test of exact fitlavTest lavtest
LRT testanova lavLRT lavLRTTest lavTestLRT lavtestLRT LRT
Score testlavScoreTest lavTestScore lavtestscore Score score
Wald testlavTestWald lavtestwald lavWaldTest Wald wald
The Lavaan Model Syntaxlavaanify lavParseModelString lavParTable lavPartable lavpartable model.syntax parseModelString
Modification IndicesmodificationIndices modificationindices modindices
mplus to lavaan converterlavImport mplus2lavaan
Convert Mplus model syntax to lavaanmplus2lavaan.modelSyntax
Parameter EstimatesparameterEstimates parameterestimates
Parameter TableparameterTable parametertable parTable partable
Industrialization And Political Democracy DatasetPoliticalDemocracy
Fit Structural Equation Models using the SAM approachfsr sam
Fit Structural Equation Modelssem
Simulate Data From a Lavaan Model SyntaxsimulateData
Standardized SolutionstandardizedSolution standardizedsolution
Summarizing EFA FitsefaList print.efaList.summary summary.efaList
Variable TablevariableTable variabletable varTable vartable