I'm trying to calculate the total R-squared in a structural equation model. Basically, I want to compare models based on the amount of variance accounted for by the endogenous variables in general (I'm not necessarily interested in the specific R-squared for each variable though).
I've searched for some options, but I'm still unsure of what to do. I'm open to doing this in Mplus, but I'm looking for a way to do this with lavaan in R.
?fitMeasures
and the optionfit.measures="rmsea"
. The MSE is intrinsically related to R squared. cran.r-project.org/web/packages/lavaan/lavaan.pdf $\endgroup$