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
0answers
15 views

CFA, 1 latent variable, 3 observed, saturated, how to continue?

For a survey on work satisfaction and health containing multiple constructs (for stress, intrinsic motivation, anxiety, quality of life), I need to confirm the unidimensionality of each construct. ...
1
vote
0answers
32 views

How to interpret standardized coefficients for latent variable in CFA?

I am fitting a CFA model with the following syntax from lavaan package: ...
0
votes
0answers
6 views

If I have a second order model that runs great, do I need to run first order model to evaluated if I can use the small constructs?

I have already posted this question on https://groups.google.com/g/lavaan/c/CZAyEDBNUwk . However, as this is more theoretical, I think that more people will be happy to help here. I have a survey ...
0
votes
0answers
24 views

Lavaan CFA with lots of cross-loadings solution not found

I am having some trouble getting my CFA to converge. There are lots of cross loadings and one factor with two indicators, both of which I think may be contributing to the error. Here is a reproducible ...
0
votes
0answers
26 views

Lavaan modification indices suggest to include in the model the correlations between variables produced by indprod, should I do it?

I am testing a moderated mediation with lavaan. I used indprod to calculate the interaction term ...
0
votes
0answers
16 views

SEM model in Lavaan - information matrix could not be inverted

Can anyone tell me what is wrong with my model? R is saying that it may not be identified! This is what im running: ...
0
votes
0answers
7 views

How to interpret lavaan output from clustering and categorical endogenous variable?

I ran a structural equation model with serial mediation and the outcome variable is a binary observed variable (coded 0 or 1 for "no" and "yes"). The rest of the variables are ...
0
votes
0answers
8 views

CLPM with count data in lavaan

I am hoping to run a crossed-lagged model with two timepoints and two variables. One variable is continuous, and the other is symptom count (zero-inflated). What would be the best approach for dealing ...
0
votes
0answers
13 views

how to interpret no change in chi square value in measurement invariance analysis, using lavaan

Currently I am using lavaan R package to do some measurement invariance analyses. One warning that I get confuses me a little bit: ...
0
votes
0answers
14 views

Comparing the means of latent variables in a CFA model measured at two different times in R

I have a CFA model with 7 latent variables and about 4 items per construct, I'm using R with lavaan for the CFA, $N\approx 3500$. My model looks like this: ...
0
votes
0answers
11 views

Regress statistical composite variable and against latent variable in an SEM using lavaan.mi

I am trying to estimate the association between a statistical composite variable, developed following the methods described here, and a latent variable using lavaan.mi (estimated from a series of ...
0
votes
1answer
63 views

How to interpret the negative variances

I had used the already published Likert scale for the survey. And the responses to the survey from 98 participants were collected. The survey likert scale was from <...
0
votes
0answers
17 views

Multigroup SEM analysis - parameters test

I'm working with SEM in social-mobility framework as I want to use different survey-questions to define the cognitive ability as a latent factor and in turn use it as an exogenous regression path. The ...
0
votes
1answer
70 views

Serial Mediation in R with three mediators (and covariates) using Lavaan - How do I code the model?

This is the model I'd like to code. And here's my current lavaan code, but I'm unsure if this is correct. [Note: I'm not interested in the M1*M2 relationship]: ...
0
votes
0answers
20 views

Factor Analysis with more variables/parameters than observations/samples

I have a dataset containing ~150 observations/rows, and significantly more variables/columns (~1000) and would like to perform factor analysis on the data. I had one question on a theoretical level ...
1
vote
0answers
25 views

Positive definite matrix and categorical variables - SEM - (lavaan) [closed]

I'm trying to estimate the following SEM model with the lavaan package: ...
0
votes
1answer
19 views

Is a reversed path analysis a nested model? (SEM)

I'm trying to compare whether a forward/direct path analysis is a better fit to the same data than a reversed model. I'm using the SEM function of the ...
0
votes
0answers
23 views

Ok to repeat same measurement in different column and different row of design matrix for multilevel model?

I have a process that unfolds in time for each participant like this: measurement1 -> event1 -> measurement2 -> event2 -> measurement3 Each of these ...
0
votes
1answer
73 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 ...
0
votes
0answers
17 views

SEM: Difference between standardized and non-standardized p-values?

I'm currently working on regressions of one latent factor on another latent factor with ``lavaan'`. More specifically, I want to examine if depression predicts procrastination behavior. However, I did ...
1
vote
1answer
73 views

What is the difference between Factor Analysis and Path Analysis in Structural Equation Modelling?

I am still a beginner in Structural Equation Modelling and I don't have a solid background in Statistics, so I apologize if my question is a bit naïve. What I traditionally do when creating a ...
0
votes
1answer
39 views

Dealing with reversed items that are causing poor CFA fit model: residuals-related problem

I am running a CFA model (N=500) with a total of 5 factors: 3 of them include reverse items. I first run a reliability test psych::alpha(df_cronbach) which showed ...
1
vote
0answers
41 views

Controlling variance manually for a latent factor w/ only one manifest indicator using lavaan in R

Using lavaan in R, I'm trying to reproduce a CFA/SEM model from a publication (cf. Figure 1 of https://onlinelibrary.wiley.com/doi/pdf/10.1111/desc.12202). Below is the correlation table and std. dev....
2
votes
0answers
83 views

Are there any theory and tutorial on Diagonally weighted least squares?

I'm interested in learning about the Diagonally Weighted Least Squares (DWLS) method for confirmatory factor analysis (CFA). I'm using lavaan package in R. I ...
0
votes
0answers
42 views

How to Correctly interpret SEM results?

Please don't judge me for asking this question, I am still learning statistics and come from a non-mathematical background... I created a Conceptual Model using lavaan in R and got the following ...
0
votes
0answers
59 views
1
vote
0answers
100 views

Latent Change Score modeling in Lavaan; Strict vs Scalar Measurement Invariance models

I am new to SEM and currently struggling setting up Latent Change Score models for testing for Measurement Invariance (MI). I have a model with two latent factors (T1 en T2) with each 2 indicators (...
0
votes
0answers
42 views

Adjust a moderated moderated mediation model with processR package

I have this follow diagram: I tried moderated W (Innovativeness) with Z (...
2
votes
1answer
75 views

R - Mediated moderation in lavaan

I'm trying to set up a mediated moderation model using lavaan but am unsure how to code it. I want to replicate Hayes process model number 7, but with two independent variables and an interaction ...
0
votes
0answers
11 views

Can a latent variable be depdendent on another latent variables in Structural Equation Modelling?

I am not an expert in research and statistics, but I am reading several research papers and I see that researchers, when using Structural Equation Modelling, use latent variables that are dependent on ...
0
votes
0answers
9 views

Latent variable with negatively correlated indicators

My purpose is to test the (reasonable under a certain theory) hypothesis that a latent variable (CTR) is reflected on eight indicators as shown in the next image: The model is ...
0
votes
0answers
15 views

Calculating SPBIC in R From Lvaan output?

I am starting to believe that my models may not be appropriate for using the normal Bayesian Information Criterion (BIC) to compare the models. I have too many free parameters (ranging from 1000-2000) ...
1
vote
1answer
113 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 ...
0
votes
1answer
24 views

What is the next step after doing factor loadings in Structural Equation Modelling in Lavaan R? [closed]

I ran a CFA model. From the research papers I've read, I realized I need to calculate t-values and find a "critical t-value". However, I don't know how to do that and in the summary table I only have ...
1
vote
1answer
134 views

Residuals and Homoscedascity in SEM with lavaan

I intend on investigating longitudinal effects through a cross-lagged panel design, facilitating the lavaan package in R. Currently, I have set up a simple Model given the scheme and code below, in ...
1
vote
0answers
35 views

Interpretation of a negativ epc (Modification Indices with lavaan)

I developed a new survey (10 Items) and run a cfa with lavaan, but the fit isn't that good. To decide which Items I should delete or which error variances I should correlate, I looked at the ...
0
votes
0answers
32 views

Multilevel Confirmatory Factor Analysis in R

In this data set, there are 10 participants. There were 5 conditions and participants were exposed to each condition. After experiencing each condition they then answered 5 questions. They answered ...
1
vote
0answers
479 views

Interpreting total, direct and indirect effects in SEM

I'm running a SEM model with one mediator variable (cognitive ability). Using lavaan I report within the code the indirect and total effects to test them. However, I have some doubts on how to ...
2
votes
1answer
326 views

SEM model in lavaan: Can't compute standard errors

I was playing around in lavaan to bind together two simple models I previously tested on their own via simple regression analyses. I followed the tutorial provided on the following site: http://lavaan....
0
votes
1answer
27 views

Contradicting Fit Measures in SEM output - Lavaan

I am running a SEM model using lavaan package in R. The idea is to check different mediation effects of social class of origin, cognitive abilities, education and personality on the log-income of the ...
2
votes
1answer
1k views

Lavaan in R : some estimated lv variances are negative (higher order model)

I'm trying to fit a higher order model with five correlated secondary order factors and 14 primary order factors, but I receive following warning in R using cfa() ...
0
votes
0answers
28 views

Residual correlations between indicator variables from different factors?

I have a model with 3 latent variables, measured on 3 different waves (years) after each other with the same items. Now I want to make a cross-lagged SEM model to test whether there is a ...
0
votes
1answer
78 views

SEM: High SRMR in model with binary predictor. Other fit indices OK [closed]

In this post I may display severe lack of understanding in SEM and the math behind it so please be kind. I am testing the following structural model with lavaan using MLM (due to non-normality) with ...
1
vote
1answer
173 views

endogenous moderator in lavaan?

I am still learning about SEM, lavaan, and moderated mediation. My question is whether a moderator can be an endogenous variable - i.e. whether the variation in the moderator can be modelled as ...
2
votes
0answers
214 views

Obtain standardized factor scores for latent variables after CFA - Lavaan package in R

I want to predict the factor scores of latent variables from CFA, and use them as independent variables in another model (not SEM). Because the latent variables don't have a measurement unit, I want ...
1
vote
0answers
33 views

Mediation Analysis with Interaction of Mediators

I am not an expert in mediation analysis or structural equation modelling. I looked in the standard reference for mediation analysis (i.e., Hayes) and searched the forum and internet a bit and could ...
2
votes
1answer
219 views

Exploratory Factor Analysis (EFA) within a CFA framework in R: How to select anchor items?

In cases, data is ordered categorical, exploratory factor analysis (EFA) is best implemented using polychoric correlations and diagonally weighted least squares (for example, see here). To my ...
2
votes
1answer
537 views

Any examples of Monte-Carlo analysis in R for sample size calculations for SEM?

I would like to calculate required sample size for my SEM model to achieve the power of at least 0.8. I read some articles that recommend using Monte-Carlo analysis in order to determine the sample ...
0
votes
1answer
94 views

Correct Estimator for Path Analysis/SEM Using Categorical Covariate

I'm currently building a path analysis model with model-based corrections for measurement error, using a latent variable structural equation model (i.e., each observed variable serves as a single ...
2
votes
1answer
195 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 ...