Questions tagged [r-lavaan]

A free, open-source `R` package for latent variable analysis. `lavaan` includes support for a large variety of multivariate statistical models which contain (or not) latent variables. It allows multilevel analysis, and as estimators that deal with missing values and categorical data. Some of the applications available are confirmatory factor analysis, full structural equation models, latent growth curve models, and path analysis.

A free, open-source R package for latent variable analysis. lavaan includes support for a large variety of multivariate statistical models which contain (or not) latent variables. It allows multilevel analysis, and as estimators that deal with missing values and categorical data. Some of the applications available are confirmatory factor analysis, full structural equation models, latent growth curve models, and path analysis.

Resources

Repositories

Related plotting packages

  • lavaanPlot - Visual analusis of lavaan models.
  • semPlot - visual analysis of various SEM packages' output, including lavaan.
308 questions
0
votes
2 answers

Implement ConQuest score command in TAM

in the IRT software ConQuest you can use the command "score" to model multiple dimensions/latent variables using the same manifest variable/raw data, but different coding. For example: score (1,2,3) (0,1,2) (0,1,0) ! items(1-3); "recodes" the…
0
votes
2 answers

Latent variable from a set of multicollinear variables

I have an environmental data set consisting of continuous, non-normally distributed observations. My goal is to construct a latent variable from the measured 5 variables. The theory behind this construct seems sound, but I’m stuck with getting the…
erska
  • 3
  • 1
0
votes
1 answer

knitr, lavaan, and subscript out of bounds

I am getting an error, Error in lines[[i]] : subscript out of bounds when trying to knit a chunk that reads in a model from an external file and then fits the model in lavaan. I create the model in a .R file: model <- readLines(con =…
Eric Green
  • 7,385
  • 11
  • 56
  • 102
-1
votes
1 answer

structural equation modelling adding a categorical variable with lavaan

have the data of two tests. test about engagement evaluated with two sections and 10 questions 6 of them about working engagement A1,A2,A3,A4,A5,A6 4 of them about intention to leave B1,B2,B3,B4 Moreover, the other test about branding is measured by…
user3483060
  • 337
  • 2
  • 13
-1
votes
1 answer

How can I obtain the cross loadings with lavaan?

In my understanding, cross loadings can only be obtained from Structural Equation modeling (i.e. not from CFA) in lavaan. Am I correct? How should I obtain the cross loadings with lavaan? Code for reference: model1 <- 'O =~ o1 + o2 + o3 + o4 +…
Aqqqq
  • 816
  • 2
  • 10
  • 27
-1
votes
1 answer

CFA on R lavaan

I have the below script and I am getting an error. Running CFA on R studio using Lavaan. See below the results *> fit <- cfa(myModel, data=ASM,) Error in lav_data_full(data = data, group = group, cluster = cluster, : lavaan ERROR: missing…
-2
votes
1 answer

How to interpret path coefficients in path analysis

I am trying to come up with a path analysis diagram using lavaan and semPlot. 1) Does anybody know how to interpret the path coefficients, especially those that does not originate anywhere but points to themselves, for eg. the coefficient 1.00…
Aven
  • 11
  • 3
-2
votes
1 answer

Getting started with R and CFA

I'm looking to run a CFA in R however I'm very new to the language in general. I've tried using the lavaan package but haven't been able to execute the code. I will keep studying R but thought I might get some help here.
1 2 3
20
21