Learn R Programming

BayesTreePrior (version 1.0.1)

NumBotMaxDepth: Number of bottom nodes and depth in the case where we have one single variable (Case #3).

Description

Generate a tree and returns the number of bottom nodes and depth in the case where we have one variable with a finite number of observations (Case #3).

Usage

NumBotMaxDepth(alpha, beta, x_size, depth = 0)

Arguments

alpha
base parameter of the tree prior, $\alpha \in [0,1)$.
beta
power parameter of the tree prior, $beta \geq 0$.
x_size
number of possible splits, $x_{size}>0$.
depth
depth of the current node, $depth \geq 0$.

Value

Returns a vector containing the number of bottom nodes and depth

See Also

NumBotMaxDepth_inf, NumBotMaxDepthX

Examples

Run this code
NumBotMaxDepth(.95,.5,500)

Run the code above in your browser using DataLab