data frame with one row for each node in the tree.
frame contain the (unique) node numbers that
follow a binary ordering indexed by node depth.
var, a factor giving
the variable used in the split at each node
(leaf nodes are denoted by the string
n, the size of each node,
wt, the sum of case weights for the node,
dev, the deviance of each node,
yval, the fitted value of the response at each node,
splits, a two column matrix of left and right split labels
for each node. All of these are the same as for an
For classification problems, information about total counts (or weights,
if weights are unequal) appear in the
wt.classX column where
X ranges from 1 to the number of classes. Similarly,
wt.frac.classX is the weight of class X in the node divided by
the total weight in the node.
nodewt is the total weight of
all observations in this node as fraction of the entire dataset. This naming
convention is different from rpart's.
Also included in the frame are
complexity parameter at which this split will collapse,
the number of competitor splits retained, and
number of surrogate splits retained. Note that
complexity values are
dependent on any penalty method and penalization constant used.
a numeric matrix describing the splits. The row label is the name of the split
variable, and columns are
count, the number of observations sent left
or right by the split (for competitor splits this is the number that
would have been sent left or right had this split been used, for surrogate
splits it is the number missing the primary split variable which were decided
using this surrogate),
ncat, the number of categories or levels for the
+/-1 for a continuous variable),
improve, which is the improvement
in deviance given by this split, or, for surrogates, the concordance of the
surrogate with the primary, and
split, the numeric split point.
The last column
adj gives the adjusted concordance for surrogate splits.
a factor, the
split column contains the row number of the csplit matrix.
For a continuous variable, the sign of
ncat determines whether the
x < cutpoint or
x > cutpoint is sent to the left.
this will be present only if one of the split variables is a factor. There
is one row for each such split, and column
i = 1 if this level of the
factor goes to the left,
3 if it goes to the right, and 2 if that level
is not present at this node of the tree.
For an ordered categorical variable all levels are marked as
including levels that are not present.
an image of the call that produced the object, but with the arguments
all named and with the actual formula included as the formula argument.
To re-evaluate the call, say
Optional components include the matrix of predictors (
x) and the
response variable (
y) used to construct the