omegaFit: graphical posterior predictive check for the 1-factor omega...

View source: R/omegaFit.R

omegaFitR Documentation

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

\insertRef

Garnier-Villarreal2020AdaptingFitIndicesBayesrel

Examples

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


Bayesrel documentation built on Aug. 9, 2023, 5:09 p.m.