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
0 votes
0 answers
14 views

Adding manifest exogenous variable to SEM leads to error

I am new to SEM, and some help would be very appreciated. I want to specify a model with one latent endogenous variable, five latent exogenous variables, and a manifest exogenous variable. Something ...
mandala77's user avatar
0 votes
1 answer
45 views

Can Lavaan handle multigroup multilevel SEM?

I am wondering if it is possible to run a multigroup, multilevel SEM in Lavaan. I can run the analysis just as a multigroup and just as a multilevel, but when I try to specify both cluster and group, ...
Amie Gordon's user avatar
0 votes
1 answer
39 views

Is it defensible to combine total scores from separate assessments to assess intervention gains?

I have two assessments, each with 28 multiple-choice items, and a total of sample size of about 180 students. Both assessments were given to students at pre-assessment and once again at post-...
Anita's user avatar
  • 11
1 vote
1 answer
46 views

Binary/dichotomous variables in random-intercept crossed-lagged panel models (RI-CLPM)

I would like to implement a RI-CLPM model in lavaan, but I am having some issues, which I suspect are related to having one variable being dichotomous (binary) and ...
matteo's user avatar
  • 3,255
0 votes
0 answers
13 views

Calculating predicted probabilities from Lavaan with categorical outcome using DWLS estimator

I am Interested in estimating a structural equation model using LAVAAN in R with a categorical outcome and am trying to understand the process of generating predicted probabilities for that outcome ...
PJTay's user avatar
  • 1
1 vote
1 answer
29 views

df (mis)calculation with efa models in lavaan

I've been working on some functionality to wrap EFA scripting in lavaan, and noticed some df's that seemed off. I'm now wondering if I'm goofing/overlooking something, or rather, if something ...
jsakaluk's user avatar
  • 5,526
0 votes
1 answer
31 views

Fixed weights to 1 in confirmatory factor analysis - how significance (p) value is obtained?

I have a question somewhat related to this thread. I now understand why the value of 1 should be fixed in the confirmatory analysis to one of paths, and I also understand that various tricks can be ...
kwadratens's user avatar
2 votes
1 answer
28 views

Negative covariance matrix in RI CLPM (lavaan)

I am currently struggling to solve the problem of negative covariance regarding the latent variables with respect to the random intercepts in my RI CLPM model, which I calculate via lavaan. Here is my ...
JamesCraemer's user avatar
1 vote
1 answer
51 views

Lavaan Estimator

I did a three-wave study with repeated measured for each wave.I have two questions: I am doing a CFA for a configural model (testing temporal invariance for each variable of my model at 3 points in ...
Madisca's user avatar
  • 11
0 votes
1 answer
21 views

Interpretation of lavaan SEM growth coefficients and covariates' influence on slope

Hello and thanks in advance for advice. I am running the growth() command in lavaan. This is a follow-up to my previous post on this topic (wow, a whole year ago!). ...
Jeanne Sinclair's user avatar
0 votes
0 answers
18 views

Specific indirect effects of a non-recursive SEM in lavaan

The structural equation model I am currently analyzing includes an indirect loop and I was unable to find a straightforward way to calculate specific indirect effects for it. A minimal example of a ...
mart109's user avatar
4 votes
1 answer
190 views

How to get standardized coefficients of Monte Carlo method for indirect effects in lavaan/semTools?

I've run a path analysis using semTools. I'm interested to test indirect effects. I would like to report the results based on Monte Carlo confidence interval. However, the code ...
Dale's user avatar
  • 171
7 votes
3 answers
766 views

P values non-significant but Monte Carlo confidence interval does not contain zero for indirect effects

I've run a path analysis using semTools. I'm interested to test indirect effects. The p values for all indirect effects were non-significant, but the Monte Carlo confidence interval for some of them ...
Dale's user avatar
  • 171
0 votes
0 answers
55 views

multilevel moderated mediation with Lavaan in R - failed to converge

This is a repeated measure study, we have X, Y, Mediator, and a moderator, which we hypothesis can moderate the mediation relationship. So I have level 1 and level 2 for between subjects and within ...
HaiMY's user avatar
  • 11
3 votes
1 answer
53 views

Nonlinear indirect effect in lavaan & semTools

I would like to use semTools to examine several indirect effects. However, some predictors have nonlinear relationships (i.e., quadratic) with the mediators, but I found very little information online ...
Dale's user avatar
  • 171
0 votes
0 answers
56 views

Path analysis with perfect fit

I'm trying to determine if I can display two regression models and the covariance between the dependent variables in one unified model using path analysis with lavaan in R. In the following (scaled) ...
BlueMarlin's user avatar
2 votes
1 answer
73 views

Maximum likelihood estimation with (robust) Huber-White standard errors appropriate for outlier management?

Is maximum likelihood estimation with robust Huber-White standard errors and a scaled test statistic — which is asymptotically equal to the Yuan-Bentler test statistic — appropriate for data with ...
Madamadam's user avatar
  • 247
1 vote
1 answer
24 views

Interpreting Mediation Model Result

I am testing a mediation model using SEM via Lavaan package in R and found that there is significant relationship between mediator variable and dependent variable. For example: ...
ros's user avatar
  • 11
0 votes
0 answers
40 views

Factor Scores explain less Variance than Item means in a multilevel cfa

I conducted a multilevel confirmatory factor analysis (CFA) in lavaan on repeated measures questionnaire data (satisfaction with travel scale). 42 participants had ...
StatOru's user avatar
  • 21
1 vote
0 answers
52 views

CFA Measurement Invariance - can weak invariance be significant with the configural but not strong invariance? [closed]

I am a newbie here. I searched through the forum but did not find similar questions, so I hope someone who is proficient with SEM / lavaan can help out. I am using R lavaan and semTools to perform ...
zstats's user avatar
  • 11
0 votes
0 answers
24 views

Decompose variance explained in sequential mediation in lavaan

I am using sequential mediation analyses (aka serial mediation) in lavaan in R. Below is my model ...
Courtney's user avatar
0 votes
0 answers
13 views

Unpaarametered Mediation paths SEM with same degree of freedom comparison

I am modelling multilevel mediation paths for my data. The idea is that a1,a2,b1, b2, c1, c2,d1,d2 all contribute to outcome variable y, and b-level, c-level, and d-level variables also affect y ...
Courtney's user avatar
4 votes
1 answer
103 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. ...
Enes Bayrakoglu's user avatar
0 votes
1 answer
89 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 ...
SEMdummy's user avatar
3 votes
1 answer
98 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 ...
Matthias's user avatar
2 votes
1 answer
85 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 ...
Madamadam's user avatar
  • 247
1 vote
1 answer
183 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 ...
user avatar
0 votes
0 answers
27 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. ...
Madamadam's user avatar
  • 247
1 vote
1 answer
82 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 ...
JuanJMV's user avatar
  • 11
3 votes
0 answers
62 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 ...
Enes Bayrakoglu's user avatar
1 vote
0 answers
18 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 ...
Madamadam's user avatar
  • 247
2 votes
1 answer
119 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 ...
Jeanne Sinclair's user avatar
1 vote
0 answers
156 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 - ...
Miljan's user avatar
  • 11
2 votes
1 answer
101 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: ...
Madamadam's user avatar
  • 247
2 votes
1 answer
74 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....
Preston Botter's user avatar
1 vote
0 answers
64 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 ...
David's user avatar
  • 11
1 vote
0 answers
470 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 ...
hanna-without-h's user avatar
0 votes
0 answers
38 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 ...
Chris's user avatar
  • 33
3 votes
1 answer
245 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) ...
Chris's user avatar
  • 33
0 votes
0 answers
59 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 ...
Garry's user avatar
  • 11
0 votes
1 answer
247 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 ...
Ronald Bahamondes-Álvarez 's user avatar
2 votes
2 answers
90 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. ...
thanmour's user avatar
1 vote
1 answer
32 views

Lavaan: How to free a constraint in one group out of two, while at the same time using effects-coding scaling method?

I am examining differences in latent means between two groups using the following syntax: ...
Nikos Makrygiorgos's user avatar
0 votes
2 answers
944 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: ...
Flóra F.'s user avatar
0 votes
1 answer
272 views

Serial mediation with 3 mediators and 2 predictors [lavaan]

I have constructed a structural equation model in R using lavaan, with 2 exogenous predictor variables, 3 mediators, and 1 endogenous response variable: I tried to label it as conventionally as ...
Atanaqui's user avatar
1 vote
1 answer
94 views

Interpertation of a conditional quadratic latent growth curve model (i.e., with predictors)

I have a conditional quadratic latent growth curve model and am wondering how to interpret the results. My predictor of interest is significantly associated with the slope factor (B = -0.45, p = .001) ...
AEP_Psych's user avatar
  • 309
1 vote
1 answer
168 views

Latent growth curve model: should you include predictors if the variance for slope and/or intercept factor is not significant?

Hi I am running a series of latent growth curve models. I am wondering: can predictors of the slope and intercept factor(s) be included when the slope and/or intercept variance are not significant, or ...
AEP_Psych's user avatar
  • 309
0 votes
0 answers
73 views

semPower: Accounting for Clustered Standard Errors in SEM Power Analysis with Fixed Effects Model

I am planning to analyse clustered data with a structural equation model and as I am planning on submitting my project as a registered report, I am first trying to do an in-depth power analysis (it is ...
Maximilian's user avatar
2 votes
1 answer
158 views

Latent growth curve model: The variance-covariance matrix of the estimated parameters (vcov) does not appear to be positive definite

I have run a latent growth curve model in R using lavaan and got the below warning. It would be good to hear suggestions on how to resolve this warning. The full output is below. Note that I dummy-...
AEP_Psych's user avatar
  • 309
1 vote
0 answers
134 views

Lavaan and semTools partial measurement invariance syntax

I am running measurement invariance in Lavaan using a 7 item ordinal scale. I have been using Lavaan and semTools, and specifically the measEq.syntax command, due to the fact it easily implements Wu ...
Josh Blake's user avatar

1
2 3 4 5
8