# Questions tagged [lavaan]

lavaan is the LAtent VAriable ANalysis package in R used for structural equation modeling

28 questions
Filter by
Sorted by
Tagged with
5k views

### How to use formative indicators in covariance-based SEM with lavaan?

I'm trying to build a covariance-based structural equation model (SEM) using both reflective and formative specifications of latent variables. I use the sem ...
• 325
7k views

### What's the difference between a MIMIC factor and a composite with indicators (SEM)?

In structural equation modeling with latent variables (SEM), a common model formulation is "Multiple Indicator, Multiple Cause" (MIMIC) where a latent variable is caused by some variables and ...
• 291
2k views

### Mediation: How can the Total Indirect Effect be significant when the Indirect Effects are not?

I ran a mediation analysis with two mediators (M1 and M2) using lavaan and I am somehow confused about the results: Direct Effect: The total direct effect of X on Y is not significant. X is, however, ...
• 21
1 vote
1k views

### Multi-group SEM: How to interpret group differences given weak measurement invariance (metric invariance)?

Context: I am using SEM (in lavaan) on a sample of about 1000 children between 6-16 years who solved several cognitive tasks. The goal was to establish a model for how different cognitive domains ...
• 47
2k views

### Serial mediation with 3 mediators [lavaan]

I want to implement a serial mediation with 3 mediators in R using the package lavaan. I found a code for the serial mediation with 2 mediators in a posting here: Serial Mediation with 2 mediators So ...
• 133
20k views

### R - moderated mediation using the lavaan package

I am interested in determining the conditional indirect effects of X on Y at a series of values for a third variable ...
• 143
8k views

### Can lavaan (SEM/CFA) be used to do factor analysis like factanal (EFA)

I understand that lavaan is designed to do SEM/CFA while the R function factanal does EFA. EFA and CFA seem very very similar, ...
• 5,375
3k views

### How to interpret the fit of cfa (sem) outcome?

I did some CFA analyses (using R package Lavaan) on several scales in order to check the unidimensionalities. If I understood well scale 5, 6 and 7 can be considered a good fit because of the RMSEA &...
1k views

### Non-significant p-values but CI does not include 0

I have just created my first mediation model using sem() with the lavaan package in R. I am using a bootstrapping with 5000 resamples and BCA to calculate the confidence intervals at a 0.9 level. ...
• 65
7k views

### How to interpret this lavaan structural equation model?

I created following structural equation model from iris data set using lavaan package in R: How do I interpret these numbers. The output (of sem() function of lavaan package) is given below. It did ...
• 10.1k
3k views

### Estimation of direct and total effects with regressions and SEM (lavaan)

I am reading about the mediation test example from the lavaan package here: http://lavaan.ugent.be/tutorial/mediation.html Specifically, they fit the model: ...
• 63.7k
873 views

### Testing if a correlation between two variables depends on a continuous third variable

Consider a data frame with three variables: $x_1$, $x_2$, and $z_1$. I want to know if the correlation between the $X$ variables depends on $z_1$. Now, this could easily be done with an interaction ...
• 10.6k
1k views

### Determining sample size for Structural Equation Model with R

I want to run and experiment to test the validity of a theoretical model. I have the structural and measurement model, but do not have previous data on any of the parameters. Is there a way I can find ...
• 163
9k views

### SEM: switching order of indicators in latent variable definition changes results

I want to do a path analysis with lavaan but encounter a few problems and would appreciate any help. The structural model looks like this: The relation between one observed independent (s) and one ...
2k views

### identification SEM model

Can someone explain to me how I calculate the non-redundant parameters? I read everywhere that you calculate this by $\frac{p(p + 1)}{2}$, but do you have to do this per latent variable or in total or ...
• 33
473 views

### Latent Change Models: account for change in one latent variable as function of change in another

Hertzog and Dixon (2003) specify that latent change models make it possible to predict change in one latent variable based on change in another. I would appreciate help conceptualizing how to create ...
254 views

### How do you calculate degrees of freedom in a formative measurement model?

In a reflective measurement model, the number of degrees of freedom is calculated according to the number of information (covariances / variances) minus the number of parameters to be estimated (...
5k views

### How do I specify a lavaan sem model with a single-indicator factor?

I would like to run a factor analysis in lavaan with a factor having only one manifest indicator. My problem is that I don't know the correct syntax for the model specification. What I already do ...
• 141
61 views

### Appropriate statistical model to evaluate the quality of measurements from different instruments?

I have a dataset where a number of samples (>600) were weighed by three different instruments, called V G and P. Each instrument was used three times to weigh each sample so there are nine values ...
• 295
460 views

### Longitudinal CFA/SEM with autocorrelated/autoregressed indicators (in R, better with lavaan)

The problem is, I am trying to fit a multilevel factor model to highly autocorrelated (in fact, autoregressive) indicators. More specifically, I have multiple measurements (60-70) per person (5-10 ...
• 311
327 views

### Factors or components in Stata and R (psych, lavaan): Confusing method labels and diverging results

I have some trouble translating between Stata and R (psych, lavaan) about factors and components with an interest in the loadings/eigenvectors of the items. I seek to validate results (understand the ...
• 145
1 vote
530 views

### Multigroup SEM: How to interpret regression coefficients?

I am carrying out a multigroup SEM with two independent subgroups (approx. 240 observations per subgroup). I have already tested measurement invariance (i.e., configural, metric, scalar & strict ...
• 11
1 vote
200 views

### How to use probe2WayMC() with fully standardized solution with semTools / Lavaan R packages? [closed]

Is it possible to get the probe2WayMC() function from SEMtools package for Lavaan in R to give estimates based upon the fully standardized solution of a SEM model? (...
1 vote
1k views

### Path analysis with missing data and dichotomous exogenous variables in lavaan

I am currently working on a path analysis in lavaan with many predictors, some of which are dichotomous. My sample size is 386 and I'm doing an exploratory study with many potential predictors ...
• 11
1 vote
795 views

### measurementInvarianceCat() - procedure and interpretation - lavaan

I have identified that sequentially constraining my models I have obtained significant p-value for each. ...
• 487
1 vote
356 views

### lavaan - analysis of survey repsonses with conditional questions

I am using lavaan to analyse customer survey data. There are several questions in the survey data, which can be factored into categories (e.g. friendliness, efficiency) etc. There is an overall ...
• 11
1 vote