Questions tagged [lavaan]
`lavaan` is the LAtent VAriable ANalysis package in R used for structural equation modeling
257
questions
0
votes
0
answers
9
views
cross-lagged-model (sem) with moderators
I have longitudinal data and want to do structural equation modeling in form of a cross-lagged-analysis with three moderator variables. My variables are attractiveness (x_t), self-worth (y_t), age (A),...
0
votes
0
answers
28
views
Include manifest variable in SEM without association to any other variable?
I would like to know whether a model that assumes a correlation between my latent and my manifest variable has a better fit than a similar model without this correlation. I am using SEM for this in ...
0
votes
0
answers
18
views
Operationalizing my research model in R - moderation and mediation in one model
Below you find my research design which I want to operationalize in R. I began with operationalizing the mediator in R through lavaan. Now I want to know whether/how I can add the displayed moderators ...
0
votes
0
answers
14
views
Attempting to recreate official Stata SEM example in the R-package lavaan [migrated]
I want to recreate this official Stata example with the R-package lavaan. I am using the same data and graphically it looks identical. My issue is that the ...
0
votes
0
answers
13
views
SEM in Lavaan in favor of comparison
I am struggling with properly applying the lavaan package in R to estimate the latent variables and their relationships with the observed variables in my data ...
1
vote
1
answer
67
views
could not compute modification indices; information matrix is singular. error message, sem with formative dependant variable in Rstudio
I'm trying to build a covariance-based structural equation model, more precisely a mediation model, using both reflective and formative specifications of latent variables. The purpose of that ...
0
votes
1
answer
22
views
What is the difference of bootstrapped standard error and lavaan default output standard error?
I am doing sem with lavaan in R, and I found that even I don't input the bootstrap parameters, the output of ...
0
votes
1
answer
53
views
Which is the measurement invariance level necessary for a multiple regression analysis?
I am interested in running a multiple regression model to test the association between a predictor variable x and an outcome variable y and control by some confounders variables (e. g. gender, age).
...
0
votes
0
answers
14
views
measurement invariance with many groups
I want to compare how the level of XY (measured using a psychomentric "XY" scale) impacts on the total score of another psychometric instrument (PT score) when controlled for some other ...
1
vote
1
answer
29
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 ...
1
vote
0
answers
13
views
Structural equation software can seemingly do factor analysis with more variables than observations
I have discovered that the function umxEFA in the R package umx can do a factor analysis with more variables than observations. A normal factor analysis cannot do this because the covariance matrix ...
1
vote
1
answer
33
views
Latent moderated Regression / SEM in Lavaan
I am trying to build a SEM in lavaan to determine the stability of a personality trait across three measurement time points. As per the theory the stability of a trait is given by the standardized ...
0
votes
1
answer
16
views
Scale development
I am in the process of developing a scale that is supposed to measure construct X with 4 factors. I have already found support for a 4-factor model to the data using exploratory factor analysis.
Now, ...
0
votes
1
answer
84
views
Why standardized factor loading > 1 ? (CFA in lavaan)
I am runing CFA in R with the lavaan package.
My model is one factor with 5 variales.
I set std.lv = TRUE, but the estimated factor loading is still > 1.
Can I report the std.all column as my ...
0
votes
1
answer
14
views
Which model fit indices do you report from lavaan cfa for scale development?
For RMSEA there seems to be a regular value and two robust values. Are there any recommendations on which of the three values to report? Would you report 1, 2 or 3 from lavaan?
0
votes
1
answer
46
views
When to add covariances of mediators [SEM]
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.
Now, ...
0
votes
1
answer
57
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.
...
0
votes
1
answer
31
views
Why don't I have metric measurement invariance even with very small differences between factor loadings across groups?
Background: I'm running a multi-group model in lavaan. It has two groups: One clinical sample (n = 160) and one healthy control sample (n = 248) that I chose to be comparable regarding age, gender and ...
0
votes
0
answers
37
views
Fit indices showing "na" in lavaan path analysis using DWLS
I am doing a path analysis using lavaan in R. I have two models of interest:
Model 1.
Model 2.
As one of the variables in the model is ordinal, I specified the ordered="Y2" command when ...
1
vote
1
answer
51
views
Multi-Group SEM in R to compare latent covariances: Fix factor variances or factor loadings?
I am using Structural Equation Modeling (SEM) in R with the lavaan package. I would like to compare four groups of children regarding how strongly their processing speed (PS) and their working memory (...
0
votes
0
answers
62
views
Latent Growth Modeling in Lavaan
Lavaan newbie here. I've been trying to specify a latent growth curve model in R for a few days now and been going through all the tutorials on the Lavaan website. The theoretical path is reasonably ...
2
votes
1
answer
78
views
SEM: How to report latent factor relationships (covariance vs. correlation)?
I would like to report results from SEM I did in R using the lavaan package. I have gotten increasingly confused about how papers use different terms and units to describe latent factor relationships ...
0
votes
1
answer
41
views
Using change in one variable (2 timepoints) to predict change in another variable (2 timepoints): latent change models?
I have two variables, both measured at two timepoints: before and after an experimental procedure.
I'm expecting that change in one variable from Time 1 to Time 2 will predict change in the other ...
0
votes
0
answers
38
views
Longitudinal Latent Change Score Modeling with Lavaan in R
I have the following data set:
...
0
votes
0
answers
23
views
How to check violations of assumptions for mediation models and correlations in R?
I'm not sure if I've completely misunderstood how violations of assumptions are checked. I understand that we can obtain diagnostic plots for linear models with:
...
0
votes
0
answers
24
views
Highly correlated linear and quadratic slope in Growth model; cov matrix not definite positive
I'm running a a Growth model in R using the package lavaan, function growth.mi(), on an imputed dataset with four measurement points. The model estimates an intercept, a linear slope, and a quadratic ...
0
votes
1
answer
28
views
Why can't I correlate my first-order factors in this SEM?
I am trying to estimate a "typical" intelligence model with three latent factors (the intelligence domains PS, WM and Gf) two of which have two indicators and one of which has four ...
0
votes
1
answer
72
views
Confirmatory Factor Analysis (CFA) for nested data
I would like to conduct CFA to examine support for a 3-factor model with team_cohesion, team_trust, and team_performance variables. I have the data in the following format with individuals rating the ...
0
votes
0
answers
71
views
Latent growth curve model in lavaan: "WARNING The smallest eigenvalue of the EM estimated variance-covariance matrix (Sigma)..."
When running a latent growth curve model in lavaan (see code below) I get the following warning message:
...
0
votes
1
answer
42
views
lavaan: lavPredict for a multigroup SEM calculated with covariance matrices
I need some help with predicting values from my multigroup model. Sadly, the official lavaan tutorial (https://lavaan.ugent.be/tutorial/cov.html) isn't helpful in that regard.
My "problem" ...
1
vote
0
answers
82
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 ...
0
votes
1
answer
124
views
How I can compare three models (nested) using lavaan with R?
I want to test a new model, and for doing this, as I only have cross sectional data, I need to compare different models. My model is like this:
...
0
votes
0
answers
31
views
Preparing Likert Data for CFA
I've been running a CFA on Likert scale data that averages the responses for each item, and I've been thinking that if I could possibly run the analysis without averaging the responses, it might ...
0
votes
1
answer
233
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 ...
1
vote
1
answer
130
views
Fix second-order factor loadings to equal in all second-order factors with two first-order factor indicators? CFA / SEM
I am conducting a CFA followed up by a SEM analysis. In my original model I had 13 latent variables. As some of these were highly correlated, I created second-order factors, of which 3 are indicated ...
1
vote
1
answer
142
views
SEM warning message "WARNING: some estimated lv variances are negative" (Latent growth curve model)
When running a quadratic latent growth curve model (model_6 below) I get the following warning message: "...
0
votes
1
answer
180
views
How to model an interacton between a categorical IV and a continous moderator (created through a CFA) in a SEM model using the lavaan package in R?
How can one go about modelling the interaction between a categorical independent variable and a continous moderator (created through a CFA) in a SEM model using the lavaan package in R?
In particular, ...
0
votes
0
answers
24
views
Why does increasing the effect size in SEM simulations in lavaan lead to a lower proportion of the simulations being fit to the model?
Summary of question:
Why does increasing the effect size in simulated data seem to cause structural equation model to be less able to fit the model to the data?
I am planning a study looking at ...
1
vote
1
answer
34
views
Confirmatory Factor Analysis identifying
I have been explained this technique in class. However, I did not understand some stuff.
The professor said that a model to be estimated needs to be at least identified. Identified meaning to be when ...
1
vote
1
answer
44
views
factor score formula in lavaan
I would like get the factor scores of R/lavaan, achieved by a CFA model (single factor, 4 continuous indicators), by hand. Which is the formula (equation) as function of the observed indicators. In ...
1
vote
0
answers
62
views
How to compare non-nested SEMs with categorical outcome
I'm running several SEMs with a categorical outcome using the WLSMV-estimator in lavaan. My goals are to (1) compare a one- with a two-factor and a three-factor model and (2) also to compare two ...
1
vote
0
answers
41
views
lavaan: No variance in predicted standard errors
I have a question concerning the prediction of factor scores with lavaan. When I try to predict factor scores with my estimated model, I get variance in the factor scores but not in the standard ...
0
votes
0
answers
58
views
Centering the Mediator in Multilevel Mediation
I want to run a parallel mediation analysis with lavaan. My data is nested, so I implement two levels. The mediation is on one level (1-1-1). Because of the nested data, I want to use the group-mean-...
0
votes
0
answers
71
views
Lavaan Mediation Analysis with 2 covariates
I’m running mediation analysis with ocd symptoms as a predictor and depression (mdd) symptoms as an outcome. I’m using lavaan in R. I have data from 3 time points and i want to control for time 1 mdd ...
0
votes
1
answer
54
views
How to Assess Standardized Factor Loading
I'm running a CFA in lavaan, and I understand that as a general rule of thumb, each item should have a standardized loading on the factor of <|0.3|. I've been making the mistake of reviewing the ...
0
votes
0
answers
56
views
Best approach for mediation analysis when mediator is represented by multiple uncorrelated variables
I have a dataset composed of several numerical, ordinal, and categorical non-ordinal variables. I want to investigate possible behavioral reasons why a specific sub-group of participants has higher ...
2
votes
2
answers
418
views
CFA in lavaan won't converge
I am attempting to run a CFA in lavaan but the model will not converge unless std.lv = TRUE. This is causing me concern, and I would like some help understanding ...
0
votes
0
answers
12
views
Uneven Samples at each wave in non-experimental Random Intercept Cross-Lagged Panel Model
I have data from people attending psychological therapy in a non-experimental setting. As this is a naturalistic setting, participants attend a different number of sessions. The sample size is N = 639,...
0
votes
0
answers
26
views
Laavan -Growth curve models with indirect effects
I have a latent growth model (growth curve model) with time-varying covariates.
I also want to to test for the possibility of indirect effects through the tine varying covariate.
Does Laavan allow for ...
0
votes
1
answer
50
views
In SEM, Does it make sense to evaluate direct, indirect, and total effects among latent variables?
I am doing an SEM model with has both latent and measured components. When I read textbooks and online examples, almost all examples that involve direct/indirect/total effects use path models with no ...