msBP.tree | R Documentation |
msBPTree
Create an object of the class msBPTree
msBP.tree(max.s = 10)
max.s |
Maximum depth of the binary tree |
An object of the class msbpTree
is a list of 5 elements that represent a draw from a msBP(a,b) prior as introduced by Canale and Dunson (2016). The first two elements are the trees of the stopping and descending-to-the-right probabilities, respectively. Both are object of the class binaryTree
. The third and fourth argument are the hyperparameters of the msBP prior, namely a
and b
. The last value is an integer with the maximum depth of both the trees.
An object of the class msBPTree
with zero at all nodes and a=b=NULL
.
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.
msBP.rtree
tree <- msBP.tree(2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.