CRAN_Status_Badge R-CMD-check Project Status: Active – The project has reached a stable, usable state and is being actively developed.

An R package for goodness of fit testing of structural equation models. Built on top of lavaan.


Use the following command from inside R:

# install.packages("remotes")


Call the library function, create a lavaan model, and run the pvalues function.

model <- "A =~ A1+A2+A3+A4+A5;
          C =~ C1+C2+C3+C4+C5"
n <- 200
object <- lavaan::sem(model, psych::bfi[1:n, 1:10], estimator = "MLM")
#> ppeba2_trad ppeba4_trad pols_2_trad  ppeba2_rls  ppeba4_rls  pols_2_rls 
#>  0.04182486  0.04370615  0.04397064  0.04235143  0.04424139  0.04450873


Foldnes, N., & Grønneberg, S. (2018). Approximating Test Statistics Using Eigenvalue Block Averaging. Structural Equation Modeling, 25(1), 101–114.

Grønneberg, S., & Foldnes, N. (2019). Testing Model Fit by Bootstrap Selection. Structural Equation Modeling, 26(2), 182–190.

Marcoulides, K. M., Foldnes, N., & Grønneberg, S. (2020). Assessing Model Fit in Structural Equation Modeling Using Appropriate Test Statistics. Structural Equation Modeling, 27(3), 369–379.

Rosseel, Y. (2012). lavaan: An R package for structural equation modeling. Journal of Statistical Software, 48(2), 1–36.

How to Contribute or Get Help

If you encounter a bug, have a feature request or need some help, open a Github issue. Create a pull requests to contribute.