CFA model fit
To examine the model fit we use fitmeasures()
and pass a list of the names of
the fit indices we would like calculated:
library(lavaan)
fitmeasures(hz.fit, c('cfi', 'rmsea', 'rmsea.ci.upper', 'bic'))
cfi rmsea rmsea.ci.upper bic
0.931 0.092 0.114 7595.339
This looks OK, but the fit indices indicate the model could be improved. In particular the RMSEA figure is above 0.05. See the notes on goodness of fit statistics for more detail.