# Evaluate Bayesian SEM goodness of fit blavaan

Cross Validated Asked by L.sicilis on December 13, 2020

I’m currently trying to identify how to evaluate model fit with Bayesian SEM. I’ve been reading that the posterior predictive p-value can be used, with a p-value of approximately 0.5 indicating good model fit (Song and Lee 2012). This source also suggests residual analysis can be used for BSEMs.

I had two questions regarding this:

1.) Are there any additional fit indices or methods used to evaluate BSEMs?

2.) Does anyone know how to perform residual analysis with the blavaan package in R?

Source:
Song, X. and S. Lee. 2012. Basic and Advanced Bayesian Structural Equation Modeling. ISBN 978-0-470-66952-5.

Garnier-Villarreal, M., & Jorgensen, T. D. (2019). Adapting fit indices for Bayesian structural equation modeling: Comparison to maximum likelihood. Psychological Methods. https://doi.org/10.1037/met0000224

If you need more:

Cain, M. K., & Zhang, Z. (2019). Fit for a Bayesian: An evaluation of PPP and DIC for structural equation modeling. Structural Equation Modeling: A Multidisciplinary Journal, 26(1), 39–50. https://doi.org/10.1080/10705511.2018.1490648

Asparouhov, T., & Muthén, B. O. (2019). Advances in Bayesian model fit evaluation for structural equation models. Statmodel. http://www.statmodel.com/download/BayesFit.pdf

Hoofs, H., van de Schoot, R., Jansen, N. W. H., & Kant, Ij. (2018). Evaluating model fit in Bayesian confirmatory factor analysis with large samples: Simulation study introducing the BRMSEA. Educational and Psychological Measurement, 78(4), 537–568. https://doi.org/10.1177/0013164417709314

2 - You can use lavaan's lavResiduals function, see an example using:

library(blavaan)
example(ppmc)


Answered by Sinval on December 13, 2020

## Related Questions

### How to test consistency of responses?

2  Asked on January 7, 2022 by user4451922

### How can I understand these variograms?

1  Asked on January 7, 2022 by zheyuan-li

### Trying to wrap my arms around copulas

2  Asked on January 7, 2022 by esurfsnake

### Justification for and optimality of $R^2_{adj.}$ as a model selection criterion

3  Asked on January 7, 2022

### How to interpret results of mixed longitudinal model in R?

1  Asked on January 7, 2022 by lazylarry

### $E(xy)<infty$ proof

0  Asked on January 7, 2022

### Calculating eigen values from principal components and deciding on the number of principal components?

1  Asked on January 7, 2022

### Question on method for analysis

0  Asked on January 5, 2022 by paul-kumar

### Selecting uncorrelated samples from a set of bulk data that contains correlated and dependent samples

1  Asked on January 5, 2022 by sarmes

### Test for significance of peaks (maximum) in time series

1  Asked on January 5, 2022 by dmort

### How does autoregression work in R?

2  Asked on January 5, 2022

### Error propagation in combined linear models

1  Asked on January 5, 2022 by chochot

### When calculating the Gini coefficient for the US, how should the portion of the population which has not filed a return be incorporated?

0  Asked on January 5, 2022

### Sampling uncertainty of posterior probability distribution

1  Asked on January 5, 2022 by milan-bosnic

### Why can’t do ridge regression with one predictor?

1  Asked on January 5, 2022

### How to model properly sequential data when the output has to be used as part of the next input? Model off completely when it makes single mistake

1  Asked on January 5, 2022 by iuppiter

### Determining whether logistic regression with robust variance for repeated measures is appropriate for my data, or which other model type to use

0  Asked on January 5, 2022

### How to create an ROC model using three classes

0  Asked on January 5, 2022 by kliocontar

### What is the origin of the name “conjugate prior”?

2  Asked on January 5, 2022

### Linear Mixed Regression Variance Decomposition

0  Asked on January 5, 2022 by lstdnce