Bayesian nonparametric density estimation


This package performs Bayesian nonparametric density estimation via a normalized random measure mixture model. The package allows the user to specify the mixture kernel, the mixing normalized measure and the choice of performing fully nonparametric mixtures on locations and scales, or semiparametric mixtures on locations only with common scale parameter. Options for the kernels are: two kernels with support in the real line (gaussian and double exponential), two more kernels in the positive line (gamma and lognormal) and one with bounded support (beta). The options for the normalized random measures are members of the class of normalized generalized gamma, which include the Dirichlet process, the normalized inversed gaussian process and the normalized stable process.


Package: BNPdensity
Type: Package
Version: 2015.5
Date: 2015-05-20
License: GPL version 2 or later
LazyLoad: yes

The package includes two main functions: MixNRMI1 and MixNRMI2, which implement semiparametric mixtures and fully nonparametric mixtures, respectively. Additionally, the package includes several other functions required for sampling from conditional distributions in the MCMC implementation. These functions intended for internal use only.


Barrios, E., Lijoi, A., Nieto-Barajas, L.E. and PrĂ¼enster, I. Maintainer: <> Ernesto Barrios


Barrios, E., Lijoi, A., Nieto-Barajas, L. E. and PrĂ¼enster, I. (2013). Modeling with Normalized Random Measure Mixture Models. Statistical Science. Vol. 28, No. 3, 313-334.

See Also




Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.