Learn R Programming

BayesTreePrior (version 1.0.1)

p_split: Probability of split of the tree prior.

Description

Probability of split of the tree prior.

Usage

p_split(alpha, beta, depth = 0)

Arguments

alpha
base parameter of the tree prior, $\alpha \in [0,1)$.
beta
power parameter of the tree prior, $\beta \geq 0$.
depth
depth of the current node, $depth \geq 0$.

Value

Returns the probability of split.

References

Chipman, H. A., George, E. I. et McCulloch, R. E. (1998). Bayesian CART model search. Journal of the American Statistical Association, 93(443), 935-948.

Examples

Run this code
p_split(.95,.5)
p_split(.95,.5,1)
p_split(.95,.5,2)

Run the code above in your browser using DataLab