residuals.asp {AdaptFitOS}R 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

asp (package AdaptFit)

Examples

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

[Package AdaptFitOS version 0.67 Index]