Skip to content

copre

0.2.2Package record

Tools for Nonparametric Martingale Posterior Sampling

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

Overview

About
Maintained by Blake MoyaCRAN page ↗Declared funder: The University of Texas at Austin

Performs Bayesian nonparametric density estimation using Martingale posterior distributions including the Copula Resampling (CopRe) algorithm. Also included are a Gibbs sampler for the marginal Gibbs-type mixture model and an extension to include full uncertainty quantification via a predictive sequence resampling (SeqRe) algorithm. The CopRe and SeqRe samplers generate random nonparametric distributions as output, leading to complete nonparametric inference on posterior summaries. Routines for calculating arbitrary functionals from the sampled distributions are included as well as an important algorithm for finding the number and location of modes, which can then be used to estimate the clusters in the data using, for example, k-means. Implements work developed in Moya B., Walker S. G. (2022). doi:10.48550/arxiv.2206.08418, Fong, E., Holmes, C., Walker, S. G. (2021) doi:10.48550/arxiv.2103.15671, and Escobar M. D., West, M. (1995) doi:10.1080/01621459.1995.10476550.

Changes in 0.2.2
  • Fixed an RcppArmadillo deprecation error.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.7 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
  • NOTE12 OK, 2 NOTE2026-04-22
  • ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.2.2
READMEYes · 369 wordsVignettesNoNEWSYes · 100% structured · mentions 0.2.2Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
24includes a package overview page
Examples that run
100%1 run in a plain check
Exported functions with examples
8%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
13%

Downloads

3K
CRAN downloads in the past year
Rank #12,326 · ~8/day · ~252/mo
Daily download trend is not available in this view yet.
39030 days
89690 days
3K1 year
Compare downloads with other packages →
Also on496 r2u11 autocran

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)

Installing copre adds 25 packages (11 with compiled code, 33 MB of source tarballs). Heaviest: BH 14 MB, ggplot2 6.0 MB, Rcpp 1.8 MB.

Depends (0)
none
LinkingTo (3)
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (2)
Maintainer since 0.1.0 (2022), Author
Copyright holder, Funder
Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.2Latest
    record
    2025-10-21 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.2.1
    record
    2024-05-21 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.0
    record
    2023-01-31 · diff ↗ ·
    removed 3 exports
    mdp, moments, polya
    added 8 exports
    G_normls, Sq_dirichlet, Sq_gnedin0, Sq_pitmanyor, antimodes, gibbsmix, moment, seqre
  • 0.1.0
    record
    2022-08-16
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-08-16
Total releases
4 / 4 yrs
License
GPL (>= 2) OSI
Download size
2.4 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("copre")
Moya, B., & The University of Texas at Austin. (2025). copre: Tools for Nonparametric Martingale Posterior Sampling (Version 0.2.2) [Computer software]. https://doi.org/10.32614/CRAN.package.copre

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 copre version 0.2.2 [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