Learn R Programming

BNPmix

An efficient C++ based package to model density distributions via Bayesian nonparametric methods in R.

Prerequisite and how to install

The BNPmix package is based on RcppArmadillo tools, the GitHub version is a source pack. To install the BNPmix package, if it is not present, it is necessary to install previously the 'devtools' package:

install.packages('devtools')

Finally, it is possible to get the BNPmix package installing by the source code on GitHub:

library(devtools)
install_github("rcorradin/BNPmix")

Copy Link

Version

Install

install.packages('BNPmix')

Monthly Downloads

466

Version

1.1.0

License

LGPL-3 | file LICENSE

Maintainer

Riccardo Corradin

Last Published

October 21st, 2025

Functions in BNPmix (1.1.0)

MAR_mv

C++ function to estimate Pitman-Yor multivariate mixtures via marginal sampler - LOCATION SCALE
PYcalibrate

Pitman-Yor prior elicitation
MAR_mv_P

C++ function to estimate Pitman-Yor multivariate mixtures via marginal sampler - LOCATION SCALE
MAR_mv_L

C++ function to estimate Pitman-Yor multivariate mixtures via marginal sampler - LOCATION
PYregression

MCMC for Pitman-Yor mixture of Gaussian regressions
PYdensity

MCMC for Pitman-Yor mixtures of Gaussians
MAR

C++ function to estimate Pitman-Yor univariate mixtures via marginal sampler - LOCATION SCALE
MAR_L

C++ function to estimate Pitman-Yor univariate mixtures via marginal sampler - LOCATION
MAR_mv_MKR_L

C++ function to estimate Pitman-Yor multivariate mixtures via marginal sampler - PRODUCT KERNEL
MAR_mv_MKR

C++ function to estimate Pitman-Yor multivariate mixtures via marginal sampler - PRODUCT KERNEL
cICS_mv_MKR_L

C++ function to estimate Pitman-Yor multivariate mixtures via importance conditional sampler - PRODUCT KERNEL
cSLI

C++ function to estimate Pitman-Yor univariate mixtures via slice sampler - LOCATION SCALE
cICS

C++ function to estimate Pitman-Yor univariate mixtures via importance conditional sampler - LOCATION SCALE
cDDP

C++ function to estimate DDP models with 1 grouping variables
cSLI_mv_P

C++ function to estimate Pitman-Yor multivariate mixtures via slice sampler - LOCATION SCALE
cICS_L

C++ function to estimate Pitman-Yor univariate mixtures via importance conditional sampler - LOCATION
cSLI_mv_L

C++ function to estimate Pitman-Yor multivariate mixtures via slice sampler - LOCATION
cICS_mv

C++ function to estimate Pitman-Yor multivariate mixtures via importance conditional sampler - LOCATION SCALE
cSLI_mv

C++ function to estimate Pitman-Yor multivariate mixtures via slice sampler - LOCATION SCALE
print.BNPdens

BNPdens print method
plot.BNPdens

Density plot for BNPdens class
dBNPdens.BNPdens

Evaluate estimated univariate densities at a given point
clean_partition

C++ function - clean the partition matrix
dBNPdens

set generic
cICS_mv_MKR

C++ function to estimate Pitman-Yor multivariate mixtures via importance conditional sampler - PRODUCT KERNEL
cICS_mv_L

C++ function to estimate Pitman-Yor multivariate mixtures via importance conditional sampler
cICS_mv_P

C++ function to estimate Pitman-Yor multivariate mixtures via importance conditional sampler - PRODUCT KERNEL
partition.BNPdens

Estimate the partition of the data
cSLI_mv_MKR

C++ function to estimate Pitman-Yor multivariate mixtures via slice sampler - PRODUCT KERNEL
cSLI_L

C++ function to estimate Pitman-Yor univariate mixtures via slice sampler - LOCATION
partition

set generic
cSLI_mv_MKR_L

C++ function to estimate Pitman-Yor multivariate mixtures via slice sampler - PRODUCT KERNEL
summary.BNPdens

BNPdens summary method
DDPdensity

MCMC for GM-dependent Dirichlet process mixtures of Gaussians
BNPmix_psm

C++ function - compute the posterior similarity matrix
CPP

Collaborative Perinatal Project data
BNPmix_BIN

C++ function - compute the Binder distances
BNPdens2coda

set generic
BNPmix-package

BNPmix: Bayesian Nonparametric Mixture Models
BNPdens

BNPdens class constructor
BNPdens2coda.BNPdens

Export to coda interface
BNPmix_VI_LB

C++ function - compute the VI lower bound
BNPpart

BNPpart class constructor