omegaFit {Bayesrel} | R 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

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

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

[Package

*Bayesrel*version 0.7.7 Index]