I need to calculate a very simple regression model outcome ~ predictor. To treat missings, I have to use FIML and also I need bootstrapping. Since the lavaan package in R provides both, I used this code:
model <- sem('outcome ~ predictor', data = data, missing = "FIML", se="BOOTSTRAP", bootstrap = 2000, fixed.x = F)
summary(model)
Unfortunately, in this structural equation modeling approach, no $R^2$ or adjusted $R^2$ is available in the output. Can someone tell me how I can obtain an equivalent measure that indicates an effect size?
If there's a simpler approach than using lavaan which provides FIML, bootstrapping, and effect size output for an univariate regression? That would be even better.
inspect(model, "rsquare")– Sointu Mar 07 '24 at 09:25summary(model, rsquare=TRUE). See theclass?lavaanhelp page for moresummary()arguments for lavaan-class objects. – Terrence Mar 07 '24 at 11:24