Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lavaan]

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

2
votes
0answers
21 views

Why item discriminations are missing in IRT GRM, estimated as a part of the Structural Equation Model?

I have run a Structural Equation Model that has four latent constructs (FI, SC, EM and RB) in R. All of the factors are continuous. Meanwhile, indicators are all ordered categorical variables measured ...
0
votes
1answer
13 views

Help moving forward after modIndices() in lavaan

I’m running a model in SEM using lavaan. I’ve really run into a puzzle I can’t quite seem to solve and I would love to tap into everyone’s expertise to help provide some direction. Below I’ve added ...
0
votes
0answers
8 views

How does explained variance in within level variables influence across-level-relations in multilevel SEMs?

Firstofall: I am sorry I cannot provide a minimal example code. I am trying my best to generalize the problem, but yet I just couldn't recreate it with dummy data. I try to provide any information ...
1
vote
1answer
37 views

Disagreement between p-values and bias corrected CI in path analysis

I am conducting a path analysis that include estimation of indirect effects (i.e. mediation). For each indirect effect specified in the model (a1*b1), I have both a p-value and a 95% boostrapped CI. ...
0
votes
0answers
32 views

How to check SEM assumptions?

This question is related to SEMs that include latent variables e those that not include in lavaan package. SEM assumes normality/multivariate normality, but it is being very difficult to found a way ...
0
votes
0answers
13 views

Linear Regression Perfectly Predicts Latent Variables

I'm having trouble understanding the relationship between the latent variables produced by the CFA function in R's Lavaan package, and linear regression. I have used one of Lavaan's built-in data ...
0
votes
1answer
14 views

How do I specify a lavaan sem model with more than one single-indicator factor?

I am trying to specify a lavaan CFA that has some factors with three or more indicators, one factor with two indicators, and two factors with one indicator. For the single indicator factors, I tried ...
1
vote
1answer
27 views

Why does my SEM ('lavaan') return covariance estimates for all pairwise variable combinations that were not specified in the model?

I specified the following model for SEM analysis using the 'lavaan' package in R. I want to specify a covariance between two observed variables (livestock and human occupancy). This is the only ...
0
votes
0answers
7 views

Creating a weighted composite score from standardized lavaan latent beta weights that retains the scale of the original measures?

I did a latent factor analysis in Lavaan which had a good fit and gave me the following estimates of standardized beta weights for three latent variables called Eta1, Eta2, and Eta3. ...
0
votes
0answers
31 views

Acceptable CFI but poor TLI

I'm working on a path analysis using lavaan in R. Here is my model fit result: Chi square: >.05 Confirmatory Fit Index (CFI): 0.94 Tucker Lewis Index (TLI): 0.86 Root Mean Square Error of ...
0
votes
0answers
18 views

Lavaan LavPredict when samples have 0 variance

I am using Lavaan to perform a Confirmatory Factor Analysis on a dataset of 10,000 League of Legends games. The features of the dataset are certain variables of the games like kills, deaths, gold ...
0
votes
1answer
19 views

Evaluating measurement invariance with lavaan and ordered data

I am running a measurement invariance in lavaan in R. I am comparing a measure of sociocultural appearance pressures across White and Black women. Because this is a 5-point scale, I am treating the ...
0
votes
0answers
11 views

Testing parameter significance vs model fit

In one of our studies we test a mediation hypothesis in a longitudinal (it's actually panel data) study with 4 measurement waves. We test a setup similar to one outlined by Cole & Maxwell (2003) ...
0
votes
0answers
13 views

Analysing panel data - looking for hypothesized mediation and moderation effects

Good afternoon, I'd like to ask you for some help in finding a (hopefully citable) way of analyzing panel data when looking for mediation and moderation effects. Problem I have is that my measured ...
0
votes
0answers
29 views

Reasons for markedly different results using MLR vs. WLSMV in CFA?

A scale I examined has a 6-point likert scale and detailed anchor points. In addition, the items are distributed skew. I did a CFA with MLR as well as with WLSMV. With WLSMV as estimator, the scale ...
0
votes
0answers
53 views

lavaan WARNING: model has NOT converged

I'm runing a mediational Path analysis as below. ...
0
votes
0answers
23 views

What type of transformation for Latent Growth Curve analysis with lavaan when observed variances are over 40,000,000?

Edit: I believe a linear transformation is just fine - divide each number by 100 for example. Just make sure you change back your units when you are interpreting the output! In fact, when I do this, ...
0
votes
1answer
25 views

Path analysis of latent variable relationships over time for hypothesis testing

Consider that I have a sample of 30 people (my real data are much bigger), and we ask them how often the would like to eat three types of food (candy, vegetables, and meat) at four points in their ...
1
vote
0answers
111 views

How to compare non-nested models (with different number of items) in CFA?

I investigate the factor structur of an existing scale in a data set with N = 714 (using lavaan, R). In this context I would like to compare to alternative models: Model 1: Two factors with 5 items ...
1
vote
1answer
111 views

Constraining latent variance of the slope across groups in lavaan

lavaan provides a function for measuring measurement invariance (measurementInvariance()). However, let's say that I want to ...
1
vote
1answer
65 views

Interpreting effect sizes in cross-lagged -auto-regressive models

I am running an auto-regressive, cross-lagged panel model between three variables (individual survey responses) to understand the over-time dynamics between them. But I am trying to make sure I ...
0
votes
1answer
71 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 (...
0
votes
0answers
35 views

Problem with assessing bidirectional effects

My dataset has four endogenous variables, namely, employment (emp), addiction (addict), depression (...
1
vote
1answer
41 views

Understanding the non-identifiability and handling of categorical variables in SEM

I have three questions about SEM and I'll ask the questions using an example that I have been working with. The dataset has employment (emp), addiction (...
1
vote
1answer
27 views

Problems evaluating whether there are structural group differences in my path analysis model

I want to evaluate if I there are structural group differences (two groups) in my path analysis model. I compared the models with and without allowing group differences (lavaan:: sem(..., group =)): ...
1
vote
0answers
184 views

Mediation: Significant indirect effect, but total effect nonsignificant, no inconsistent mediation

I conducted a mediation analysis via lavaan. For estimating all effects, I used 10,000 bootstraps. I have problems interpeting my results. Path a is negative and significant. Path b is positive ...
2
votes
0answers
27 views

Double Mediation?

can anyone help me with what this R (package lavaan) syntax? I got a question: Is it correct that a kind of nested multiple mediation is tested with this code (X = "predictor", XM1 = "predictor 2" in "...
1
vote
0answers
70 views

Warning message when cluster-argument is included in lavaan .06-2

I have a sample of 529 people who are in 50 clusters. I'm not interested in any multilevel question but I would like to get cluster-robust standard errors for my SEM. Therefore, I included the cluster-...
0
votes
1answer
32 views

CFA Interpretation

I am trying to teach myself how to do CFA on the fly, with no formal training in statistical analysis (my first grad course on quantitative analysis is next semester). I believe that I have figured ...
1
vote
1answer
26 views

Residual variance of a variable in Structured Equation Modeling

I am following lavaan package in R to implement SEM. I have a doubt for residual correlation equation. http://lavaan.ugent.be/tutorial/sem.html in general, in residual correlations equations, y1 ~~...
2
votes
1answer
25 views

Test of difference maximum likelihood parameters SEM R

I have a structural equation model implemented in R 3.4.4 using lavaan 0.6-1 and estimated on two different subgroups using a robust maximum likelihood estimator. Now I want to compare the parameters ...
1
vote
1answer
114 views

Fitting issues when including certain combination of variables with lavaan::cfa()

I am trying to fit 13 ordinal indicator variables to a single factor, but there are three of them that will result in a warning when they're included simultaneously. You can find the code below (data ...
0
votes
0answers
78 views

Higher order CFA in lavaan- weird error message about missing value

I conducted a CFA with lavaan, which worked fine. However, when I tried to do the exact same model, only with a second higher order latent factor that is explained by all other factors, I got a very ...
0
votes
1answer
106 views

Mediation analysis with 5 Independent variables in R

I am new to the mediation analysis and i am trying to find my way... So, I have the following dataset: X's : 5 independent variables (D, E, F, G, H), where H is the sum of the other 4 (probably not ...
1
vote
2answers
380 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
1answer
91 views

How to interpret the coefficients for binomial reponse variables in SEM [R, lavaan]

I am learning SEM using the lavaan package in R. One of the response variables is binomial data (whether or not a participant answered the question accurately), ...
1
vote
0answers
18 views

Added variables to my path analysis model are significant predictors but model fit is worse?

I want to test if there are additional moderation effects to my existing model. The moderation effects (variables are centered) are significant, but the model fit gets significantly worse (lavaan). ...
0
votes
0answers
26 views

Multiple dimension scale development - validation using SEM

I'm developing a scale for measuring customer experience. Based on the principal component analysis I established that it has three components (11 items). Now I need to validate it by relating it to ...
0
votes
1answer
89 views

Improve fit index -mediation-path analysis and control for variables

I have conducted multiple mediation analysis (3 predictors+1control +3 mediators+1outcome)(all observed variables) using R-lavaan. My full model, has bad RMSEA while the CFI seem ok (see outcome ...
1
vote
1answer
420 views

Path analysis with perfect fit (RMSEA = 0; df = 4; Chi-Square = 3.972) is that too good to be true?

I created my first path analysis model with lavaan. Despite having a big sample (N = 600) my robust analysis has a perfect fit. I'm a bit suspicicous when something is perfect when I am doing ...
0
votes
0answers
709 views

In lavaan, I can't find a solution to a model not being identified.

Hello everyone and thank you in advance for any help that you can provide. I am trying to fit a model in SEM that tries to fit a relationship between two formative exogenous latent variables and 1 ...
5
votes
0answers
153 views

Whether to use EFA or CFA to predict latent variables scores?

I have a dataframe of individual observations, that I partitioned to create a training (0.7 prop) and a test set (0.3 prop). I started by running an exploratory factor analysis (EFA) on the training ...
1
vote
1answer
72 views

Correlated residuals lead to low factor loadings

I am doing CFA in lavaan (3-factor model, all factors correlated). The fit of this model is quite bad and I wanted to improve it. I realized, that the full questionnaire contains four negatively-keyed ...
1
vote
1answer
110 views

error variance (delta) of a factor - lavaan

I'm building a measurement model with three factors and I don't know how to set the error variance ((1 - reliability) * item's variance) of one of the factors in lavaan. Thanks for your help.
2
votes
0answers
168 views

R^2 for endogenous variable in path analysis unreasonably high compared to simple regression

EDIT: I have modified my data set so as to make it effectively decontextualized, and so now have data and example code if anyone wishes to reproduce this effect. You can find it at the bottom of the ...
0
votes
0answers
97 views

Use structural equation modeling to build a composite score / index

I am thinking of using SEM - specifically with MIMIC model on a household survey to build a multidimensional score/index that will bring together both formative and reflective indicators. The idea ...
2
votes
0answers
84 views

Estimating model fit in multiple mediator SEM

I'm building a multiple mediation model in lavaan. My research question concerns to what extent a relationship between a continuous X and a binary Y is mediated by two continuous mediators M1 and M2. ...
1
vote
2answers
120 views

Is this model identified?

Is this model identified? The paper is in plosone, but it seems to be that the combination of regression paths from PCS ~ MCS and ...
1
vote
1answer
96 views

Testing Inequality Constrained Hypotheses in SEM with lavaan

I'd like to know how can I test for inequality of estimates in a lavaan::sem() fitted model (using R)? Also, is there a known ...
1
vote
1answer
136 views

Confirmatory factor analysis: insignificant item / manifest variable variances

Upon fitting a measurement model using the lavaan package in r and removing some low factor loadings, I noticed that one of the items / manifest variables has an ...