Questions tagged [lavaan]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
20 views

Why do I get smaller degrees of freedom for the Scalar invariance model than the Metric one while testing measurement invariance?

I am trying to test the measurement invariance in my bi-factor model with CFA tests. I have 23 binary questions coded "correct" and "incorrect" and 3 different groups in my data. ...
0 votes
1 answer
34 views

Comparing regression coefficients across non-nested SEM models (Lavaan)

I had question about SEM in Lavaan which I cannot seem to get a grip on through any google forums or my old lecture slides... I wish to explain cognition using several variables (CR1/CR2, which stand ...
0 votes
2 answers
412 views

Should I interpret the scaled or the standard model in SEM (lavaan)?

I'm attempting to fit a structural equation model in lavaan. My model looks like this: ...
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 ...
2 votes
2 answers
1k views

Mediation in R Package lavaan: Total effect of the IV has a different p-value than the same variable in a Multiple Regression

I am really confused with the results of my mediation analysis using lavaan. I am using one predictor and several covariates. Is there any reason why ...
3 votes
1 answer
34 views

Completely standardized indirect effect (Preacher & Kelley, 2011) in lavaan

Preacher & Kelley (2011) have proposed an effect size (i.e., completely standardized indirect effect) that quantifies the magnitude of an indirect effect. My question is whether lavaan's ...
2 votes
2 answers
430 views

Direct and indirect effect of a categorical variable with more than 2 levels in a structural equation model

I am new in SEM, and trying to figure out how to possibly get proportion of direct/indirect effect of a categorical variable with more than 2 levels over its total effect. We have a categorical ...
7 votes
1 answer
2k views

Clustering standard errors in SEM (lavaan package)

I have data from an RCT with one control group and one treatment group and trying to explore mediators for changes in the outcome of interest (i.e. pathways of change). My final model is defined as ...
2 votes
1 answer
78 views

Getting an equivalent of R-squared for simple univariate regression done with structural equation modeling

I need to calculate a very simple regression model outcome ~ predictor. To treat missings, I have to use FIML and also I need bootstrapping. Since the ...
1 vote
1 answer
40 views

Question- How to read the CFA results using the ordered statement in Lavaan package for ordinal data?

I am using the ordered statement in my CFA model when running lavaan in R, but I couldn't figure out how to read the results. I ...
1 vote
3 answers
373 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 ...
0 votes
0 answers
18 views

Approach for multivariate outlier detection when treating missing values with FIML

I‘m calculating a simple regression with one predictor and one dependent variable. Missings treatment is done with full information maximum likelihood (FIML). Should I do outlier detection, i.e. ...
1 vote
2 answers
264 views

Interpretation of covariance in CFA vs regression in SEM

I have conducted a confirmatory factor analysis in lavaan (in the context of a group comparison). Moving on to structural equation modelling I realised that my hypothesized structural model is ...
2 votes
1 answer
2k views

SEM : WLSMV or WLS?

I am conducting a SEM in R using lavaan and I am a bit lost regarding which estimator I should use. I have a model like the ...
1 vote
1 answer
43 views

Moderation and Mediation model

I am trying to fit a moderation mediation model (please see the figure) So I have a clasic mediation model and a moderator for the association between the mediator and the outcome. I want to fit this ...
3 votes
0 answers
52 views

I get very different and inconsistent model fit indices and test statistics every time I run the cfa.mi models with the same imputed categorical data

I am trying to test the measurement invariance in my one-latent-factor model. I have 24 questions coded "correct" and "incorrect" and 3 different groups in my data. The sample ...
2 votes
0 answers
51 views

can someone explain the application of row.weights and sampling.weights in lavaan? [closed]

I am trying to include the weight derived from Inverse Probability of Treatment Weighting (IPTW) into a structural equation model (SEM). However, it is unclear how it should be incorporated into the ...
2 votes
0 answers
92 views

Double Mediation?

Can anyone help me with what this lavaan (R package) syntax is doing? I got a question: Is it correct that a kind of nested multiple mediation is tested with this ...
2 votes
1 answer
72 views

Comparing path analysis models: mediation vs. (residual) covariance

I am using lavaan to run path analysis to predict PC from WA and LC. These are multi-group models. Described here is the first step (identifying best-fitting paths); it is followed by constraining ...
1 vote
0 answers
17 views

Assumptions to be met for a contrast test of mean against zero

When doing a contrast test (see R code below) or it's rather unusual regression style equivalent, both of which are basically a t-test, what assumptions have to be ...
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 ...
1 vote
1 answer
364 views

bifactor model: factor loadings exceed 1

I fit a CFA model in R with the lavaan package using the "MLM" estimator, as the data follows a non-normal ...
1 vote
1 answer
307 views

Mediation model with covariates and between and within-person mediators

I am pretty new to mediation in multilevel models. I want to run a 2-1-1 (and maybe a 2-2-1) mediation model in R. The dataset consists of 110 participants with three assessments per day. covariates = ...
1 vote
0 answers
139 views

Can I covary exogenous and endogenous latent variables in SEM in lavaan

I am editing the question as it was too meandering. I am sorry about that. I am running an extended Theory of planned behavior (TPB) model of digital piracy and I have a question that boils down to - ...
0 votes
0 answers
28 views

Can we use multiple ordinal endogeneous variables in SEM model using lavaan?

I have three endogenous variables each measured using 5-point likert scale ranging from Strongly Agree to Strongly Disagree. I want to use SEM for my analysis using Lavaan. All the examples I have ...
2 votes
1 answer
52 views

Using FIML (Full Information Maximum Likelihood) for simple correlation test on data with missings?

I have a dataset with missing values. Since my main hypothesis is just a simple regression, my adviser told me to use FIML regression. So I used lavaan package: ...
1 vote
0 answers
505 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 ...
2 votes
1 answer
61 views

Seeking References for Mediation and SEM Best Practices

Preamble Recently, a colleague approached me with a dataset$^1$ that they wanted to use to compare several competing mediation models using structural equation modeling (SEM). The models are simple, e....
3 votes
1 answer
271 views

lavaan's estimated residuals output different than manually estimated residuals

I am using lavaan and wanted to check my residuals for my model. I use lavaan's residuals() or lavResiduals() function, but I also decided to do it myself manually by computing the difference between ...
1 vote
0 answers
38 views

What does it mean when the total effect is non-significant in a mediation?

I ran a mediation analysis using lavaan, there was a significant indirect effect but no significant direct or total effect. What does the total effect mean and how do I go about interpreting this ...
1 vote
1 answer
2k 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 ...
3 votes
1 answer
802 views

CFA: scaling of measured variables/indicators

I'm running a latent variable analysis with: 166 observations 21 continuous variables using the R package lavaan A simple run of ...
6 votes
3 answers
12k views

Lavaan SEM Ordinal and Categorical variables

In my model I have dichotomous variables (gender, car ownership) and ordinal variables (Income, Employment,...). My question is whether it is possible to construct latent variables using dichotomous ...
0 votes
2 answers
315 views

Contradicting Fit Measures in SEM output - Lavaan

I am running a SEM using lavaan package in R. The idea is to check different mediation effects of social class of origin, ...
1 vote
1 answer
314 views

Lavaan - Model with formative indicators not identified

I know that this was already treated. However, I still have problems and get the following warning: In lav_model_vcov(lavmodel = lavmodel, lavsamplestats = lavsamplestats, : lavaan WARNING: Could not ...
1 vote
2 answers
2k views

How is $R^2$ calculated in the lavaan package for structural equation modeling?

I am doing a study for which I tested a model like this: Model1: Var1 --> var2--> var3 --> var4. All variables are latent variables and have several indicators. Now, the $R^2$ of var3 is 0.4 in this ...
2 votes
2 answers
68 views

Test of Group Invariance with 3 Groups

Say, we have three groups and we want to run a test of group invariance with the following data. ...
6 votes
2 answers
3k views

Lavaan mediation + moderation + 2 X's

I'm trying to build a SEM that looks like the picture shown below: Where: $X$ and $X^2$ are the independent variables $Y$ is the dependent variable $M_1$ and $M_2$ are the mediators $W$ is a ...
1 vote
1 answer
253 views

Robustification in lavaan: Difference between M, MV and MVS?

In lavaan, I am running a two-factor CFA on a questionnaire with 28 items, all of which are scored on a 6-point Likert scale. In total I have ~350 participants who completed the questionnaire. Because ...
0 votes
1 answer
277 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 ...
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 ...
1 vote
0 answers
39 views

power analysis for cross-lagged panel model with random intercept using powRICLPM

I want to compute power analysis for cross-lagged panel model with random intercept using powRICLPM package (Related publication) Authors of the package did a great job and the power analysis seems to ...
0 votes
0 answers
34 views

How do different sets of restrictions in a SEM with moderation affect results?

I'm trying to run a latent moderated mediation analysis SEM with R lavaan. It is essentially "First Stage Moderation", per Edwards & Lambert (2007), with a few extra factors. I'm using ...
1 vote
2 answers
198 views

How to free the first indicator in a CFA, and set equality constraint with other parameters?

I want to test Tau-Equivalence in a CFA model, under LAVAAN. If I don't free the first item in a factor, it will be automatically set to 1 (reference indicator), so I fixed the factor variance to 1, ...
1 vote
1 answer
545 views

How to interpret standardized coefficients for latent variable in CFA?

I am fitting a CFA model with the following syntax from lavaan package: ...
1 vote
0 answers
224 views

lavaan: std.lv versus std.all interpretation for (essentially) tau-equivalent models

A (essentially) tau-equivalent model has the following specifications: the factor loadings are constrained to be equal the intercepts are constrained to be equal (tau-equivalent) or allowed to vary ...
3 votes
1 answer
153 views

How to interpret standardized simple slopes and indirect effects in R with semTools and lavaan?

I am attempting to obtain a standardized solution for simple slopes and indirect effects in a SEM in R using lavaan and semTools::probe2WayMC, following the methods of Schoemann & Jorgensen (2021) ...
1 vote
1 answer
181 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? (...
0 votes
0 answers
41 views

Fixed Effects in a latent variable framework using lavaan

I am just now familiarising myself with the literature on Fixed Effect Models. I was wondering if anyone had any references or could confirm that fixed effect models can be used in a latent variable ...
0 votes
1 answer
152 views

Centering variables in Lavaan - Path analysis

I hope you're doing well. I'm currently knee-deep in path analysis using the lavaan package for my research. My analysis involves moderation, and centering the variables may simplify coefficient ...

1
2 3 4 5
8