Skip to content
This package was removed from CRAN on 2023-04-10. Its history is shown below.
Reason: policy violation. On Internet access to 'travis-ci.org'
Details below reflect version 0.1.4, its last release before removal.

bbricks

0.1.4Package record

Bayesian Methods and Graphical Model Structures for Statistical Modeling

0packages depend
–downloads / year
–test coverage
–flavors OK

Overview

About

A set of frequently used Bayesian parametric and nonparametric model structures, as well as a set of tools for common analytical tasks. Structures include linear Gaussian systems, Gaussian and Normal-Inverse-Wishart conjugate structure, Gaussian and Normal-Inverse-Gamma conjugate structure, Categorical and Dirichlet conjugate structure, Dirichlet Process on positive integers, Dirichlet Process in general, Hierarchical Dirichlet Process ... Tasks include updating posteriors, sampling from posteriors, calculating marginal likelihood, calculating posterior predictive densities, sampling from posterior predictive distributions, calculating "Maximum A Posteriori" (MAP) estimates ... See https://chenhaotian.github.io/Bayesian-Bricks/ to get started.

Changes in 0.1.4

New features

Add method dAllIndicators to all DP family distributions. dAllIndicators will return the probabilities of all the possible values of the hidden indicator variables.

Bug fixes

  • Fixed bug: DP, HDP and HDP2 objects don't initialize observation distribution when created.
  • Fixed bug: rPosteriorPredictive.HDP and rPosteriorPredictive.HDP2 return samples with unexpected name such as "z.z".
  • Fixed bug: fix the error Error in obj$Z$Z2[[j]] : subscript out of bounds when rPosteriorPredictive.HDP try to draw samples from an unrecorded group.

Improvements

  • Fix graphical model representation error in package vignette.
  • Fix wrong conditional probability distributions in DP related documentations.
  • Add HMM and HDP-HMM (iHMM) examples to the vignette

From NEWS.md in the release

Install

Health

CRAN checks

CRAN check results are not tracked yet.

Advisories

none known

Documentation

In release 0.1.4
READMENoVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.1.4Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
182 (1 internal)includes a package overview page
Examples that run
90%106 run in a plain check · 12 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
72%
Documented parameters
85%
Return-value docs
100%
Help pages citing references
63%

Downloads

Daily download trend is not available in this view yet.
Also on96 r2u35 autocran120 c2d4u

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (0)
none
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
–indirect (not tracked)

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (1)
Author, Maintainer since 0.1.1 (2020)
Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.3.0 released · 2023-04-21
  • archivedRemoved from CRAN
    2023-04-10
    policy violation On Internet access to 'travis-ci.org'
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.4
    record
    2020-05-07 · diff ↗ ·
    added 2 exports
    dAllIndicators, dAllIndicators.HDP
  • 0.1.3
    record
    2020-04-26 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1.2
    record
    2020-04-14 · diff ↗ ·
    removed 1 export
    linearGaussian
    added 56 exports
    GaussianGaussian, GaussianInvWishart, LinearGaussianGaussian, dInvGamma, dInvWishart, dNIW, dPosterior, dWishart, pdsDeterminant, rInvGamma, rInvWishart, rNIW, rPosterior, rWishart, dPosterior.CatDirichlet, dPosterior.GaussianGaussian, dPosterior.GaussianInvWishart, dPosterior.GaussianNIG, dPosterior.GaussianNIW, dPosterior.LinearGaussianGaussian, dPosteriorPredictive.GaussianGaussian, dPosteriorPredictive.GaussianInvWishart, dPosteriorPredictive.LinearGaussianGaussian, MAP.GaussianGaussian, MAP.GaussianInvWishart, MAP.LinearGaussianGaussian, marginalLikelihood_bySufficientStatistics.GaussianGaussian, marginalLikelihood_bySufficientStatistics.GaussianInvWishart, marginalLikelihood_bySufficientStatistics.LinearGaussianGaussian, marginalLikelihood.GaussianGaussian and 26 more
  • 0.1.1
    record
    2020-03-25
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2020-03-25
Total releases
4 / 6 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Bundled data
911 KB / 8 files

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("bbricks")
Chen, H. (n.d.). bbricks: Bayesian Methods and Graphical Model Structures for Statistical Modeling (Version 0.1.4) [Computer software]. Retrieved October 27, 2026, from https://CRAN.R-project.org/package=bbricks

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 bbricks version 0.1.4 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-26, 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