Category "r-lavaan"

Code for cross lagged model with moderators

I want to find out which relation exists between Attractiveness (X) and self-worth (Y) and use R for it. This relation should be moderated by age (A), gender (G

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

R: What is the difference between the "baseline model" and "unrestricted model" in lavaan model summaries?

Usingsummary(fit.measures = TRUE) I am able to access extensive information about the fit of models stored in lavaan model objects. In this output (exemplified

predict() and resid() for lavaan.survey

I want to conduct CFA with survey design weight in R. An easy option seems to be using lavaan.survey package. However, from lavaan object created by lavaan.sur