honest.rparttree {htetree} | R Documentation |
Honest recursive partitioning Tree
Description
The recursive partitioning function, for R
Usage
honest.rparttree(
formula,
data,
weights,
subset,
est_data,
est_weights,
na.action = na.rpart,
method,
model = FALSE,
x = FALSE,
y = TRUE,
parms,
control,
cost,
...
)
Arguments
formula |
a formula, with a response and features but
no interaction terms. If this a a data frome, that is taken as
the model frame (see |
data |
an optional data frame that includes the variables named in the formula. |
weights |
optional case weights. |
subset |
optional expression saying that only a subset of the rows of the data should be used in the fit. |
est_data |
data frame to be used for leaf estimates; the estimation sample. Must contain the variables used in training the tree. |
est_weights |
optional case weights for estimation sample |
na.action |
the default action deletes all observations for which
|
method |
one of Alternatively, |
model |
model frame of |
x |
keep a copy of the |
y |
keep a copy of the dependent variable in the result. If
missing and |
parms |
optional parameters for the splitting function. |
control |
a list of options that control details of the
|
cost |
a vector of non-negative costs, one for each variable in the model. Defaults to one for all variables. These are scalings to be applied when considering splits, so the improvement on splitting on a variable is divided by its cost in deciding which split to choose. |
... |
arguments to |
Value
An object of class rpart
after running an honest recursive
partitioning tree.
.