rpart.class {rpart} | R Documentation |
Set up for the class
method for an rpart
model.
rpart.class(y, offset, parms, wt)
y |
the responses. |
offset |
NULL : anything else is an error. |
parms |
a named list of parameters. |
wt |
case weights. |
rpart.class
is to be used only by the function rpart
. It
validates the input parameter list: if that is missing or NULL
default values are supplied.
Returns a list consisting of
y |
y as factor codes, |
parms |
a named list of parameters. This will have components
prior , loss and split (and more if supplied). |
numresp |
the number of responses (one plus the number of classes). |
counts |
a vector of counts for each class. |
ylevels |
the response levels corresponding to the codes given in
y . |
summary |
a function to be invoked by summary.rpart , |
text |
a function to be invoked by text.rpart . |