omegaFit {Bayesrel} | R Documentation |
gives posterior predictive check for the 1-factor model: comparison between model implied covariance matrix and sample covariance matrix also displays frequentist fit indices
omegaFit(x, data, ppc = TRUE, cutoff = 0.08, ci = 0.9)
x |
A strel output object (list) |
data |
A matrix or data.frame containing the data set that produced x |
ppc |
A logical indicating if the PPC should be printed or not, the default is TRUE |
cutoff |
A value to compare the posterior sample of RMSEAs against. The result will contain the probability that the RMSEA is smaller than the cutoff value |
ci |
A value between 0 and 1 indicating the credible interval for the RMSEA |
Garnier-Villarreal M, Jorgensen TD (2020). “Adapting Fit Indices for Bayesian Structural Equation Modeling: Comparison to Maximum Likelihood.” Psychological Methods, 25(1), 46–70.
omegaFit(strel(asrm, "omega", n.chains = 2, n.iter = 200), data = asrm)