Learn R Programming

msBP (version 1.4-1)

msBP.rtree: Random msBP tree

Description

Draw a random tree from the msBP process

Usage

msBP.rtree(a, b, max.s = 10)

Value

An object of the class msBPTree

Arguments

a

Scalar parameter

b

Scalar parameter

max.s

Maximum depth of the random trees

References

Canale, A. and Dunson, D. B. (2016), "Multiscale Bernstein polynomials for densities", Statistica Sinica, 26(3), 1175-1195.

Canale, A. (2017), "msBP: An R Package to Perform Bayesian Nonparametric Inference Using Multiscale Bernstein Polynomials Mixtures". Journal of Statistical Software, 78(6), 1-19.

See Also

msBP.rsample, msBP.compute.prob

Examples

Run this code
msBP.rtree(2, 2, 4)

Run the code above in your browser using DataLab