BayesTreePriorOrthogonalInf {BayesTreePrior} | R Documentation |
Simulation of the tree prior 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 trees from the prior distribution 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
BayesTreePriorOrthogonalInf(alpha, beta, n_iter = 500)
Arguments
alpha |
base parameter of the tree prior, |
beta |
power parameter of the tree prior, |
n_iter |
number of trees to generate, |
Value
Returns a list containing, in the following order: the mean number of bottom nodes, the standard deviation of the number of bottom nodes, the mean of the depth, the standard deviation of the depth and a data.frame of vectors , where
is the number of bottom nodes and
is the depth of the
th generated tree (
).
See Also
BayesTreePriorOrthogonal
, BayesTreePriorNotOrthogonal
Examples
results = BayesTreePriorOrthogonalInf(.95,.5)
[Package BayesTreePrior version 1.0.1 Index]