Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rpart-internal

Internal Functions


Description

Internal functions, only used by packages rpart and ipred.

Usage

pred.rpart(fit, x)
rpart.anova(y, offset, parms, wt)
rpart.class(y, offset, parms, wt)
rpart.matrix(frame)
rpart.poisson(y, offset, parms, wt)
rpartco(tree, parms)

Arguments

fit

a tree fitted by rpart.

x

a matrix of predictors.

y

the responses.

offset

an offset, or NULL.

parms

a list of parameters, usually empty.

wt

case weights.

frame

model frame (from call to rpart)

tree

a tree fitted by rpart.

Value

For rpartco the x,y plotting coordinates of the nodes.

rpart.anova, rpart.class and rpart.poisson return a list with components

y

(adjusting for offset if necessary),

parms

as input,

numresp

the number of responses,

summary

a function to be invoked by summary.rpart,

text

a function to be invoked by text.rpart.


rpart

Recursive Partitioning and Regression Trees

v4.1-15
GPL-2 | GPL-3
Authors
Terry Therneau [aut], Beth Atkinson [aut, cre], Brian Ripley [trl] (producer of the initial R port, maintainer 1999-2017)
Initial release
2019-04-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.