Learn R Programming

locfit (version 1.1-3)

residuals.locfit: Fitted values for a `"locfit"' object.

Description

residuals.locfit is implemented as a front-end to fitted.locfit, with the type argument set.

Usage

## S3 method for class 'locfit':
residuals(object, data, type="dev",
                  ...)

Arguments

object
"locfit" object.
data
The data frame for the original fit. Usually, shouldn't be needed.
type
Type of fit or residuals to compute. The default is "fit" for fitted.locfit, and "dev" for residuals.locfit. Other choices include "pear" for
...
other arguments to fitted.locfit; e.g., cv and studentize.

Value

  • A numeric vector of the residuals.