I was reading this article on saturated models in structural equation modeling (SEM) and it appears they describe a tool for checking how well the model fits data even if the model fit indices indicate a "perfect fit" under raw data misspecification. They simply take the individual case residuals (ICRs) and plot them against a variable of interest or parameter not included in the original SEM. They can be seen below, which are just the scatterplots of these checks:
However, I was curious how one can obtain this information in packages like lavaan
or otherwise, as the examples they give are in Stata. I am aware one can get residuals by running resid(fit)
or something similar with lavResiduals
, but these typically only give you residual matrices. Is there a way of obtaining ICRs in R?