Multiscale Bernstein Polynomials for Densities
Internal msBP functions
Bayesian nonparametric density estimation via Multiscale Bernstein Pol...
Compute binary tree of probabilities
Random probability density function and random cumulative distribution...
Gibbs sampling for density estimation for msBP model
Nesting of the sample through the tree
Posterior cluster allocation
Random numbers from a random msBP densty
Random msBP tree
Multiscale testing of group differences
Creating an msBPTree
Conversions between tree and vector
Performs Bayesian nonparametric multiscale density estimation and multiscale testing of group differences with multiscale Bernstein polynomials (msBP) mixtures as in Canale and Dunson (2016).