Learn R Programming

modelbpp: Model BIC Posterior Probability

(Version 0.2.0 updated on 2026-03-01, release history)

This package is for assessing model uncertainty in structural equation modeling (SEM) by the BIC posterior probabilities of the fitted model and its neighboring models, based on the method presented in Wu, Cheung, and Leung (2020). The package name, modelbpp, stands for model bayesian posterior probability. An introduction to the package can be found in the following article:

  • Pesigan, I. J. A., Cheung, S. F., Wu, H., Chang, F., & Leung, S. O. (2026). How plausible is my model? Assessing model plausibility of structural equation models using Bayesian posterior probabilities (BPP). Behavior Research Methods, 58(3), Article 73. https://doi.org/10.3758/s13428-025-02921-x

Homepage

For more information on this package, please visit its GitHub page:

https://sfcheung.github.io/modelbpp/

A quick introduction on how to use this package can be found in the Get-Started article (vignette("modelbpp")).

Installation

The stable CRAN version can be installed by install.packages():

install.packages("modelbpp")

The latest developmental-but-stable version of this package can be installed by remotes::install_github:

remotes::install_github("sfcheung/modelbpp")

Issues

If you have any suggestions or found any bugs, please feel free to open a GitHub issue. Thanks.

https://github.com/sfcheung/modelbpp/issues

Reference(s)

Wu, H., Cheung, S. F., & Leung, S. O. (2020). Simple use of BIC to assess model selection uncertainty: An illustration using mediation and moderation models. Multivariate Behavioral Research, 55(1), 1--16. https://doi.org/10.1080/00273171.2019.1574546

Copy Link

Version

Install

install.packages('modelbpp')

Monthly Downloads

174

Version

0.2.0

License

GPL (>= 3)

Maintainer

Shu Fai Cheung

Last Published

March 1st, 2026

Functions in modelbpp (0.2.0)

modelbpp-package

modelbpp: Model BIC Posterior Probability
model_set_combined

Two or More Hypothesized Models
partables_helpers

Helper Functions For partables-Class Objects
plot.model_graph

Plot a Network of Models
min_prior

Minimum Prior
model_graph

Generate a Graph of Models
model_set

BIC Posterior Probabilities of Neighboring Models
print.model_set

Print a model_set-Class Object
measurement_invariance_models

Measurement Invariance Models
print.partables

Print a partables-Class Object
print.sem_outs

Print an sem_outs-Class Object
dat_cfa

A Sample Dataset Based On a Confirmatory Factor Analysis Model (For Testing)
get_add

Models That Are Less Restricted
fit_many

Fit a List of Models
get_drop

Models That Are More Restricted
c.partables

Manipulate Parameter Tables
dat_serial_4_weak

A Sample Dataset Based On a Serial Mediation Model With Weak Paths (For Testing)
dat_path_model

A Sample Dataset Based on a Path Model (For Testing)
dat_serial_4

A Sample Dataset Based On a Serial Mediation Model (For Testing)
dat_sem

A Sample Dataset Based On a Structural Model (For Testing)
dat_path_model_p06

A Sample Dataset Based On a Complex Path Model (For Testing)