Skip to main content

Questions tagged [lavaan]

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

Filter by
Sorted by
Tagged with
12 votes
0 answers
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 ...
jhg's user avatar
  • 325
12 votes
1 answer
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 ...
dmp's user avatar
  • 291
2 votes
1 answer
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, ...
Elisa's user avatar
  • 21
1 vote
1 answer
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 ...
louise's user avatar
  • 47
0 votes
1 answer
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 ...
Scijens's user avatar
  • 133
7 votes
1 answer
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 ...
B Victor's user avatar
  • 143
6 votes
1 answer
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, ...
Corvus's user avatar
  • 5,375
5 votes
1 answer
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 &...
rdatasculptor's user avatar
5 votes
1 answer
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. ...
140989's user avatar
  • 65
5 votes
1 answer
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 ...
rnso's user avatar
  • 10.1k
4 votes
2 answers
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: ...
AdamO's user avatar
  • 63.7k
4 votes
3 answers
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 ...
Mark White's user avatar
  • 10.6k
3 votes
1 answer
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 ...
Piyush Shah's user avatar
3 votes
1 answer
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 ...
user avatar
3 votes
1 answer
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 ...
Michelle's user avatar
2 votes
1 answer
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 ...
Santi Allende's user avatar
2 votes
1 answer
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 (...
user380073's user avatar
2 votes
2 answers
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 ...
Wolfgang's user avatar
  • 141
2 votes
1 answer
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 ...
qdread's user avatar
  • 295
2 votes
0 answers
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 ...
psyguy's user avatar
  • 311
2 votes
1 answer
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 ...
Johan's user avatar
  • 145
1 vote
0 answers
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 ...
Elisa's user avatar
  • 11
1 vote
1 answer
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? (...
JoeyyyFunk's user avatar
1 vote
1 answer
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 ...
nkc89's user avatar
  • 11
1 vote
0 answers
795 views

measurementInvarianceCat() - procedure and interpretation - lavaan

I have identified that sequentially constraining my models I have obtained significant p-value for each. ...
Nneka's user avatar
  • 487
1 vote
1 answer
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 ...
Ilana L's user avatar
  • 11
1 vote
1 answer
1k views

Multi-group SEM analysis - regression paths

I am using SEM to model the intergenerational social class mobility with education as a mediator for father class. However, I also have a latent variable - ability - which is then also having a direct ...
Luca Giangregorio's user avatar
0 votes
1 answer
2k views

CFA lavaan - reasons for bad fit?

I investigate the psychometric properties of an existing scale in a data set with N = 714. The structure originally assumed by the authors is the following, from which different index scores (...
Tina Kanina 's user avatar