Learn R Programming

Bayesrel (version 0.7.8)

omegaFit: graphical posterior predictive check for the 1-factor omega model, based on covariance matrix eigenvalues

Description

gives posterior predictive check for the 1-factor model: comparison between model implied covariance matrix and sample covariance matrix also displays frequentist fit indices

Usage

omegaFit(x, data, ppc = TRUE, cutoff = 0.08, ci = 0.9)

Arguments

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

References

Garnier-Villarreal2020AdaptingFitIndicesBayesrel

Examples

Run this code
omegaFit(strel(asrm, "omega", n.chains = 2, n.iter = 200), data = asrm)

Run the code above in your browser using DataLab