Package: bmco 0.1.0

Xynthia Kavelaars

bmco: Bayesian Analysis for Multivariate Categorical Outcomes

Provides Bayesian methods for comparing groups on multiple binary outcomes. Includes basic tests using multivariate Bernoulli distributions, subgroup analysis via generalized linear models, and multilevel models for clustered data. For statistical underpinnings, see Kavelaars, Mulder, and Kaptein (2020) <doi:10.1177/0962280220922256>, Kavelaars, Mulder, and Kaptein (2024) <doi:10.1080/00273171.2024.2337340>, and Kavelaars, Mulder, and Kaptein (2023) <doi:10.1186/s12874-023-02034-z>. An interactive shiny app to perform sample size computations is available.

Authors:Xynthia Kavelaars [aut, cre], Joris Mulder [ths], Maurits Kaptein [ths], Dutch Research Council [fnd]

bmco_0.1.0.tar.gz
bmco_0.1.0.zip(r-4.7)bmco_0.1.0.zip(r-4.6)bmco_0.1.0.zip(r-4.5)
bmco_0.1.0.tgz(r-4.6-any)bmco_0.1.0.tgz(r-4.5-any)
bmco_0.1.0.tar.gz(r-4.7-any)bmco_0.1.0.tar.gz(r-4.6-any)
bmco_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
bmco/json (API)

# Install 'bmco' in R:
install.packages('bmco', repos = c('https://xynthiakavelaars.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/xynthiakavelaars/bmco/issues

Pkgdown/docs site:https://xynthiakavelaars.github.io

Datasets:
  • bglm_data - Simulated Single-Level Clinical Trial Data
  • bglm_fit - Pre-computed bglm Example Fit
  • bglmm_data - Simulated Multilevel Clinical Trial Data
  • bglmm_fit - Pre-computed bglmm Example Fit

On CRAN:

Conda:

4.65 score 1 stars 525 downloads 3 exports 29 dependencies

Last updated from:9eabe87123. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK251
source / vignettesOK250
linux-release-x86_64OK245
macos-release-arm64OK206
macos-oldrel-arm64OK234
windows-develOK273
windows-releaseOK283
windows-oldrelOK283
wasm-releaseOK121

Exports:bglmbglmmbmvb

Dependencies:abindclicodaexpmgenericsgluelatticelifecyclemagrittrMASSMatrixMatrixModelsmcmcMCMCpackmsmmvtnormpgdrawpillarpkgconfigquantregrbibutilsRcppRdpackrlangSparseMsurvivaltibbleutf8vctrs

Introduction to bmco
Overview | The Problem | Quick Start Example | Three Analysis Functions | 1. bmvb(): Basic Comparison | 2. bglm(): Subgroup analysis | 3. bglmm(): With Clustering | Decision Rules | All Rule (Conjunctive) | Any Rule (Disjunctive) | Compensatory Rule (Weighted) | Test Directions | Right-sided Test | Left-sided Test | Understanding the Output | Key Output Elements | Posterior Samples | Practical Considerations | Sample Size | MCMC Settings | Missing Data | Comparison with Frequentist Approaches | Traditional approach | Bayesian approach | Advantages of Bayesian approach | Next Steps | References

Last update: 2026-03-05
Started: 2026-02-25

Subgroup Analysis with Multivariate Binary Outcomes
Introduction | When to Use Subgroup Analysis | Example: Clinical Trial with Age Effects | Generate Data | Full sample analysis | Subgroup Analysis | Three Methods for Population Definition | 1. Value Method: Specific Covariate Level | 2. Empirical Method: Observed Covariate Range | 3. Analytical Method: Theoretical Covariate Distribution | Choosing a Method | Comparing Results Across Methods | Understanding Regression Coefficients | Decision Rules | All Rule | Any Rule | Compensatory Rule | Practical Example: Subgroup Analysis | Discrete Covariates | Sample Size Considerations | Specifying Prior Distributions | Default Priors | Custom Fixed Effects Priors | Prior Sensitivity Analysis | Further Reading | MCMC Diagnostics | Comparison: bmvb() and bglm() | Advanced: Extracting Predictions | Summary | References

Last update: 2026-03-05
Started: 2026-02-25

Subgroup Analysis with Multivariate Binary Outcomes in Multilevel Data
Introduction | When to Use Multilevel Models | Example: Educational Intervention Study | Generate Example Data | Fit Multilevel Model | Interpretation | Specifying Population of Interest | Specific Ability Level | Ability Range (Empirical) | Ability Range (Analytical) | Decision Rules with Multilevel Data | All Rule (Conjunctive) | Any Rule (Disjunctive) | Compensatory Rule | Specifying Prior Distributions | Fixed Effects Priors (bglm and bglmm) | Default Priors | Custom Fixed Effects Priors | Random Effects Priors | Population-Level Random Effects | Random Effects Covariance | Prior Sensitivity Analysis | Guidelines for Choosing Priors | Common Mistakes to Avoid | Further Reading | MCMC Diagnostics | Extracting Posterior Samples | Data Requirements | Common Issues and Solutions | Warning: "Very few clusters (J < 5)" | Warning: "MCMC chains may not have converged" | Slow computation | Summary | References

Last update: 2026-03-05
Started: 2026-02-25