residuals.asp: Residuals for semiparametric regression.

View source: R/residuals.asp.r

residuals.aspR Documentation

Residuals for semiparametric regression.

Description

Extracts residuals from a semiparametric regression fit object.

Usage

## S3 method for class 'asp'
residuals(object,...)

Arguments

object

a fitted asp object as produced by asp2().

...

other possible arguments.

Details

Extracts residuals from a semiparametric regression fit object. The residuals are defined to be the difference between the response variable and the fitted values.

Value

The vector of residuals.

See Also

plot.asp, predict.asp, summary.asp, fitted.asp

Examples

data(fossil,package="SemiPar")
attach(fossil)
fit <- asp2(strontium.ratio~f(age))
plot(age,residuals(fit))
abline(0,0)

AdaptFitOS documentation built on July 21, 2022, 5:10 p.m.