\Header{rpart-internal}{Internal Functions}
\alias{pred.rpart}{rpart-internal}
\alias{rpart.matrix}{rpart-internal}
\keyword{internal}{rpart-internal}
\begin{Description}\relax
Internal functions, only used by packages \pkg{rpart} and \pkg{ipred}.
\end{Description}
\begin{Usage}
\begin{verbatim}
pred.rpart(fit, x)
rpart.anova(y, offset, parms, wt)
rpart.class(y, offset, parms, wt)
rpart.exp(y, offset, parms, wt)
rpart.matrix(frame)
rpart.poisson(y, offset, parms, wt)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{fit}] a tree fitted by \code{rpart}.
\item[\code{x}] a matrix of predictors.
\item[\code{y}] the responses.
\item[\code{offset}] an offset, or \code{NULL}.
\item[\code{parms}] a list of parameters, usually empty.
\item[\code{wt}] case weights.
\item[\code{frame}] model frame (from call to \code{rpart})
\end{ldescription}
\end{Arguments}
\begin{Value}
\code{rpart.anova}, \code{rpart.class}, \code{rpart.exp} and
\code{rpart.poisson} return a list with components

\begin{ldescription}
\item[\code{y}] (adjusting for \code{offset} if necessary),
\item[\code{parms}] as input,
\item[\code{numresp}] the number of responses,
\item[\code{summary}] a function to be invoked by \code{\Link{summary.rpart}},
\item[\code{text}] a function to be invoked by \code{\Link{text.rpart}}.
\end{ldescription}
\end{Value}

