Skip to content

copre

Tools for Nonparametric Martingale Posterior Sampling

v0.2.2 · Oct 21, 2025 · GPL (>= 2)

Description

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>.

Downloads

253

Last 30 days

17456th

712

Last 90 days

2.7K

Last year

Trend: -5.6% (30d vs prior 30d)

CRAN Check Status

2 NOTE
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-oldrel-macos-arm64

installed package size

installed size is  5.8Mb
  sub-directories of 1Mb or more:
    help   2.6Mb
    libs   3.1Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.9Mb
  sub-directories of 1Mb or more:
    help   2.6Mb
    libs   3.2Mb

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  5.8Mb
  sub-directories of 1Mb or more:
    help   2.6Mb
    libs   3.1Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.9Mb
  sub-directories of 1Mb or more:
    help   2.6Mb
    libs   3.2Mb

Dependency Network

Dependencies Reverse dependencies Rcpp pracma abind dirichletprocess copre

Version History

new 0.2.2 Mar 10, 2026
updated 0.2.2 ← 0.2.1 diff Oct 20, 2025
updated 0.2.1 ← 0.2.0 diff May 20, 2024
updated 0.2.0 ← 0.1.0 diff Jan 30, 2023
new 0.1.0 Aug 15, 2022