Skip to content

RprobitB

2.0.1Package record

Bayesian Probit Choice Modeling

0packages depend
5.3Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Fits Bayesian probit models for binary, multinomial, ordered, and ranked choices in cross-sectional and panel data. Correlated or uncorrelated normal and log-normal random coefficients, finite mixtures, sparse finite mixtures, and Dirichlet process mixtures describe preference heterogeneity. Multiple Gibbs chains produce posterior draws for diagnostics and choice prediction. Choice data can be supplied as a data frame or simulated from the requested specification. For an overarching treatment of the methodology, see Oelschlaeger (2026) https://pub.uni-bielefeld.de/record/3014719. The latent-class model is described in Oelschlaeger and Bauer (2021) https://trid.trb.org/view/1759753.

Changes in 2.0.1
  • plot() has the new option type = "mixture", which draws the estimated mixing distributions of the random effects.
  • bayes_factor() now accepts models with a fixed number of up to six latent classes.
  • Ordered choice models now include an intercept by default.
  • The occupancy table of latent_class_diagnostics() lists every number of classes from one to the maximum, including numbers with probability zero.
  • Every chain starts at a draw from the prior distributions of the coefficients and thresholds, with the deciders allocated to the classes at random, instead of at the prior means, so that the chains start dispersed.
  • Cap the progress updates to prevent that many fast updates freeze the RStudio console.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 14.6 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-30
  • ERROR11 OK, 2 ERROR2026-09-14
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
Show 5 earlier changesHide 5 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK12 OK2026-04-25
  • NOTE12 OK, 2 NOTE2026-04-22
  • ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 2.0.1
READMEYes · 687 wordsVignettesYes · 5 · dynamicNEWSYes · 100% structured · mentions 2.0.1Citation fileNoWebsiteYes · pkgdown
Help pages
26 (2 internal)includes a package overview page
Examples that run
100%23 run in a plain check (2 of them under a condition)
Exported functions with examples
90%
Documented parameters
96%
Return-value docs
90%
Help pages citing references
38% with a bibliography file

Downloads

5.3K
CRAN downloads in the past year
Rank #4,421 · ~15/day · ~443/mo
Daily download trend is not available in this view yet.
89430 days
1.9K90 days
5.3K1 year
Compare downloads with other packages →
Also on392 r2u4 autocran79 c2d4u

Repository

5Stars
0Forks
0Open issues
0Open PRs
0Releases
1,010Commits
1Commit identities
probitdiscrete-choicebayesrstatsmcmc-sampler
License file reads as GPL-3.0 · 1,010 commits · Last activity 2026-10-21
Responsiveness
How these are sampled
PRs merged (all time)
95%
Median days to close, 50 most recently updated closed issues
30
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-07-05 · 52026-07-07 · 5
PracticesBeta

13 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/loelschlaeger/rprobitb on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (2)
Issue templatesPR template
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-09-20 · The repository has a site deploy workflow

pkgdown site last built 2026-09-20, before release 2.0.1 (2026-10-21)

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
26 external dependencies (excludes base and recommended)

Installing RprobitB adds 125 packages (59 with compiled code, 83 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, bslib 5.6 MB.

Depends (1)
R >= 4.1.0
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (2)
Author, Maintainer since 0.1.0 (2021)
Listed in earlier versions (2)
Sebastian Büscher
no longer listed · 0.1.0 to 1.1.4
Manuel Batram
no longer listed · 0.1.0 to 1.1.4
Releases (11)

Pick two releases to compare their code metrics.

  • 2.0.1Latest
    record
    2026-10-21 · current release · diff ↗
  • 2.0.0
    record
    2026-09-20 · diff ↗ ·
    removed 24 exports
    R_hat, RprobitB_parameter, as_cov_names, check_prior, choice_probabilities, classification, compute_p_si, cov_mix, create_lagged_cov, fit_model, get_cov, ll_ordered, mml, mode_approx, model_selection, npar, overview_effects, plot_class_allocation, plot_mixture_contour, plot_roc, point_estimates, pred_acc, prepare_data, simulate_choices
    added 6 exports
    bayes_factor, fit, interpret, latent_class_diagnostics, log_likelihood_ordered, loo
  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.0
    record
    2025-08-25 · diff ↗ ·
    removed 8 exports
    dmvnorm, euc_dist, rdirichlet, rmvnorm, rtnorm, rttnorm, rwishart, update_reg
    added 9 exports
    mode_approx, plot_class_allocation, plot_mixture_contour, sample_allocation, update_Omega_c, update_b_c, update_classes_dp, update_classes_wb, update_coefficient
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • unarchivedReturned to CRAN
    2024-02-26
  • 1.1.4
    record
    2024-02-26 · diff ↗
  • archivedRemoved from CRAN
    2024-02-21
    requires archived package 'oeli'
  • 1.1.3
    record
    2024-02-08 · diff ↗ ·
    removed 2 exports
    M, delta
  • R
    R 4.3.0 released · 2023-04-21
  • 1.1.2
    record
    2022-11-06 · diff ↗
  • 1.1.1
    record
    2022-08-11 · diff ↗
  • 1.1.0
    record
    2022-07-22 · diff ↗ ·
    removed 12 exports
    choice_probs, classify, compare, compute_log_likelihood, mcmc, predict, prepare, simulate, transform, is_covariance_matrix, set_mfrow, undiff_Sigma
    added 40 exports
    M, RprobitB_parameter, WAIC, as_cov_names, check_prior, choice_probabilities, classification, compute_p_si, cov_mix, create_lagged_cov, d_to_gamma, dmvnorm, euc_dist, fit_model, get_cov, ll_ordered, mml, model_selection, npar, plot_roc, point_estimates, pred_acc, prepare_data, rdirichlet, rmvnorm, rtnorm, rttnorm, rwishart, simulate_choices, train_test and 10 more
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.0
    record
    2021-11-12 · diff ↗ ·
    removed 1 export
    pattern:^[[:alpha:]]+
    added 15 exports
    choice_probs, classify, compare, compute_log_likelihood, mcmc, overview_effects, predict, prepare, simulate, transform, delta, is_covariance_matrix, R_hat, set_mfrow, undiff_Sigma
Show 4 earlier eventsHide 4 earlier events
  • 0.1.1
    record
    2021-05-25 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.0
    record
    2021-05-15
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2021-05-15
Total releases
11 / 5 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1.0
Download size
963 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("RprobitB")
Oelschläger, L., & Bauer, D. (2026). RprobitB: Bayesian Probit Choice Modeling (Version 2.0.1) [Computer software]. https://doi.org/10.32614/CRAN.package.RprobitB

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for RprobitB version 2.0.1 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy