Learn R Programming

⚠️There's a newer version (1.0.2) of this package.Take me there.

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

307

Version

1.0.1

License

LGPL-3 | file LICENSE

Maintainer

Riccardo Corradin

Last Published

July 8th, 2022

Functions in BNPmix (1.0.1)

MAR_mv_MKR

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

MCMC for Pitman-Yor mixture of Gaussian regressions
PYdensity

MCMC for Pitman-Yor mixtures of Gaussians
cDDP

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

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

set generic
dBNPdens.BNPdens

Evaluate estimated univariate densities at a given point
MAR_mv_L

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

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

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

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

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

C++ function to estimate Pitman-Yor multivariate mixtures via slice sampler - LOCATION SCALE
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
DDPdensity

MCMC for GM-dependent Dirichlet process mixtures of Gaussians
summary.BNPdens

BNPdens summary method
cSLI_mv_L

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

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

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

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

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

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

C++ function - clean the partition matrix
PYcalibrate

Pitman-Yor prior elicitation
partition

set generic
print.BNPdens

BNPdens print method
partition.BNPdens

Estimate the partition of the data
plot.BNPdens

Density plot for BNPdens class
cICS_L

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

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

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

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

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

BNPdens class constructor
BNPdens2coda.BNPdens

Export to coda interface
CPP

Collaborative Perinatal Project data
BNPmix-package

BNPmix: Bayesian Nonparametric Mixture Models
BNPdens2coda

set generic
BNPmix_psm

C++ function - compute the posterior similarity matrix
BNPpart

BNPpart class constructor
BNPmix_BIN

C++ function - compute the Binder distances
BNPmix_VI_LB

C++ function - compute the VI lower bound