msBP.compute.prob {msBP} | R Documentation |
Compute binary tree of probabilities
Description
Compute the binary tree of probabilities using the multiscale stick-breaking process of Canale and Dunson (2016).
Usage
msBP.compute.prob(msBPtree, root = TRUE)
Arguments
msBPtree |
An object of the class msBPTree |
root |
logical. if the root needs to be considered (default) or it should be cut (fixing |
Details
Compute a binary tree of weights. The general weights for node of scale
, is
where and
if
is the right daughter of node
, or
if
is the left daughter of
.
An object of the msBPTree class is basically a list containing two objects of the class
binaryTree
: the tree (representing the stoping probabilities) and the
tree (representing the proceed-right probabilities).
Value
An object of the class msbpTree
.
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
Examples
S <-structure(list( T = list(1/8,c(1/3,1/3), c(1/4,1/4,1/4,1/4),
rep(1,8)), max.s=3), class = "binaryTree")
R <-structure(list( T = list(1/2,c(1/2,1/2), c(1/4,1/2,1/2,1/2),
rep(1,8)), max.s=3), class = "binaryTree")
RS <-structure(list(S = S, R = R), class = "msbpTree")
probabilities <- msBP.compute.prob(RS)