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

residuals.locfit

Fitted values and residuals 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=NULL, type="deviance", ...)

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 Pearson residuals; "raw" for raw residuals, "ldot" for likelihood derivative; "d2" for the deviance residual squared; lddot for the likelihood second derivative. Generally, type should only be used when what="coef".

...

arguments passed to and from other methods.

Value

A numeric vector of the residuals.


locfit

Local Regression, Likelihood and Density Estimation

v1.5-9.4
GPL (>= 2)
Authors
Catherine Loader [aut], Jiayang Sun [ctb], Lucent Technologies [cph], Andy Liaw [cre]
Initial release
2020-03-24

We don't support your browser anymore

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