multiFit {Bayesrel} | R Documentation |
model fit for the second-order and bi-factor model,
Description
Fit indices and posterior predictive check for the multidimensional model: comparison between posterior sample of model implied covariance matrices and sample covariance matrix. Gray bars should enclose the black dots for good fit. Also prints fit indices, LR (likelihood-ratio), RMSEA, SRMR. The RMSEA is from Garnier-Villareal & Jorgensen (2020)
Usage
multiFit(x, data, ppc = TRUE, cutoff = 0.08, ci = 0.9)
Arguments
x |
A bomegas 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 |
References
Garnier-Villarreal M, Jorgensen TD (2020). “Adapting Fit Indices for Bayesian Structural Equation Modeling: Comparison to Maximum Likelihood.” Psychological Methods, 25(1), 46–70.
Examples
multiFit(bomegas(upps, n.factors = 5, n.chains = 2, n.iter = 150,
n.burnin = 50, missing = "listwise"), upps)