For each bootstrap sample grow a projection pursuit tree (PPtree object).
baggtree(
data,
y,
m = 500,
PPmethod = "LDA",
lambda = 0.1,
size.p = 1,
parallel = FALSE,
cores = 2
)
data frame with trees_pp output for all the bootstraps samples.
Data frame with the complete data set.
A character with the name of the y variable.
is the number of bootstrap replicates, this corresponds with the number of trees to grow. To ensure that each observation is predicted a few times we have to select this number no too small. m = 500
is by default.
is the projection pursuit index to be optimized, options LDA or PDA, by default it is LDA.
a parameter for PDA index
proportion of random sample variables in each split if size.p= 1 it is bagging and if size.p<1 it is a forest.
logical condition, if it is TRUE then parallelize the function
number of cores used in the parallelization