Learn R Programming

BayesTreePrior (version 1.0.1)

NumBotMaxDepth_inf: Number of bottom nodes and depth in the unrealistic case where we assume that the number of variables and possible splits are infinite (therefore P(T) is not dependent on the design matrix X) (Case #2).

Description

Generate a tree and returns the number of bottom nodes and depth in the unrealistic case where we assume that the number of variables and possible splits are infinite (therefore P(T) is not dependent on the design matrix X) (Case #2).

Usage

NumBotMaxDepth_inf(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 a vector containing the number of bottom nodes and depth.

See Also

NumBotMaxDepth, NumBotMaxDepthX

Examples

Run this code
NumBotMaxDepth_inf(.95,.5)

Run the code above in your browser using DataLab