% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ppmodel.R
\name{residuals.ppmodel}
\alias{residuals.ppmodel}
\title{Residuals from a regression ppforest2 model.}
\usage{
\method{residuals}{ppmodel}(object, ...)
}
\arguments{
\item{object}{A \code{pprf} or \code{pptr} regression model.}

\item{...}{Unused.}
}
\value{
A numeric vector of length \code{nobs(object)}.
}
\description{
Returns \code{y - fitted(model)}. Only defined for regression models —
classification residuals have no canonical scalar form, so this method
errors on classification models rather than inventing a convention.
}
\seealso{
\code{\link{fitted.ppmodel}}
}
