Questions tagged [structural-equation-model]

Structural equation modeling includes a diverse set of mathematical models, computer algorithms, and statistical methods that fit networks of constructs to data. Structural equation modeling includes confirmatory factor analysis, confirmatory composite analysis, path analysis, partial least squares path modeling, and latent growth modeling.

Structural equation modeling includes a diverse set of mathematical models, computer algorithms, and statistical methods that fit networks of constructs to data. Structural equation modeling includes confirmatory factor analysis, confirmatory composite analysis, path analysis, partial least squares path modeling, and latent growth modeling.

157 questions
6
votes
0 answers

Compute effect sizes of path coefficients in SEM with R

I am currently using the lavaan package in R for structural equation models. I would like to compute the effect sizes (i.e., partial-eta-squared) for each of my path coefficient. Is there already a package that does this? For instance, how can I…
mat
  • 2,412
  • 5
  • 31
  • 69
5
votes
1 answer

Path analysis: CFI = 1, RMSEA = 0

I was running a path analysis model but it seems that model fit indexes were perfect: CFI = 1.00, RMSEA = 0.00. However, perfect model fits usually indicate saturated model. But it seems that my model is NOT the case since I have extra degrees of…
Xian Zhao
  • 81
  • 1
  • 11
3
votes
2 answers

Path diagram in r

I am trying to plot a path diagram of a Structural Equation Model(SEM) in R. I was able to plot it using semPlot::semPaths(). The output is similar to The SEM was modeled using lavaan package. I want a plot similar to . with estimates and p values.…
Stat009
  • 45
  • 1
  • 5
3
votes
0 answers

Cross Validation Structural Equation Modeling

Not sure why it is difficult to find info on this topic. I want to CV my SEM model. N = 360. I've pulled 70% of data into a train set and have built the model, first on theory then using modification indices. I also have a test data frame where I…
James
  • 459
  • 2
  • 14
3
votes
0 answers

Avoiding node overlaps in semPaths with the "repulsion" argument in the Fruchterman Reingold algorithm

I fitted a structure equation model with sem and I am now trying to visualize the model with semPaths: semPaths(fit1b_rh, "path", "stand",layout="tree", edge.color = "black", residuals = FALSE, layoutSplit = TRUE, subRes = 360, asize = 1 , sizeMan…
Julia S.
  • 31
  • 1
3
votes
1 answer

Multigroup SEM constraining regression coefficients in lavaan

I am trying to compare two groups of children and test whether executive function (EF) is a significant predictor of reasoning (CR) (and I also include other covariates) using SEM and the lavaan package in R. Am I correctly doing that comparison…
JRBauer
  • 31
  • 3
3
votes
0 answers

Moderation using lavaan package in R

I am writing the model syntax for my model to run in lavaan package using R. I have a factor created (which is my independent variable), 4 dependent variables (I will test 4 different models for each separate DV), and I have four moderating…
Shub
  • 31
  • 2
3
votes
2 answers

Exclude Node in semPaths {semPlot}

I'm trying to plot a sem-path with R. Im using an OUT file provinent from Mplus with semPaths {semPLot}. Apparently it seems to work, but i want to remove some latent variables and i don't know how. I am using the following syntax : Out from Mplus…
3
votes
1 answer

SEM in R (CFA): Could not compute QR decomposition of Hessian. Optimization probably did not converge.

i wanted to do a CFA (which worked out fine) and then I deleted the two items with the lowest R² to improve the fit of the model. The problem is that it just worked out for one of them - and of course the fit was better than before. But when I tried…
Jakob
  • 31
  • 1
3
votes
1 answer

Setting Covariance to Zero in Lavaan

In lavaan in R, when using the sem() function, the covariance values are automatically populated. However, I want to force one of the covariance values to be zero while using the sem() function, i.e. without moving to the manual lavaan()…
2
votes
1 answer

Drawing path diagrams with R package 'sem' using Graphviz

I use the sem package to do my analysis. To draw a path diagram I use the pathDiagram function in sem to get the code and then use it in Graphviz to get the diagram. I have two questions: library(sem) R.DHP <- readMoments(diag=FALSE,…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
2
votes
1 answer

Why can't I do a 3 variable CFA with lavaan on R?

Everything works just fine when I have 4 variables or more. But I thought the minimum for a CFA or EFA was 3 variables. When I run the code, it gives me 0's for all the parameters that estimate if it's a good fit or not. For this purpose, i will use…
2
votes
0 answers

Is it possible to use full information maximum likelihood (FIML) estimation when building a SEM tree with the partykit package and lavaan in R?

I would like to capture heterogeneity in depressive symptom trajectories using the R package partykit. Therefore, I specified a latent growth curve model (LGCM) in lavaan and set up a “mobster” function that can handle SEMs as shown by Achim Zeileis…
2
votes
0 answers

Longitudinal Latent Change Score Modeling with Lavaan in R

I have the following data set: structure(list(ID = c(38623L, 38806L, 39593L, 39820L, 39951L, 40286L, 43762L, 52577L, 54153L, 57445L, 58503L, 59344L, 59361L, 60575L, 61656L, 62210L, 62285L, 62937L, 64081L, 64328L, 65302L, 65478L, 65480L, 65487L,…
CanyonView
  • 401
  • 3
  • 15
2
votes
1 answer

Lavaan in R with very small values

I am trying to run a lavaan structural equation model to identify change between two time points. I have the following data set: structure(list(COG_T1 = c(0.0010333, 0.00105981, 0.00113736, 0.001108715, 0.00104864, 0.00110772, 0.00109096,…
CanyonView
  • 401
  • 3
  • 15
1
2 3
10 11