residuals.spm: Residuals for semiparametric regression.

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Extracts residuals from a semiparametric regression fit object.

Usage

1
2
## S3 method for class 'spm'
residuals(object,...)

Arguments

object

a fitted spm object as produced by spm().

...

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.

Author(s)

M.P. Wand mwand@uow.edu.au (other contributors listed in SemiPar Users' Manual).

References

Ruppert, D., Wand, M.P. and Carroll, R.J. (2003)
Semiparametric Regression Cambridge University Press.
http://stat.tamu.edu/~carroll/semiregbook/

Ganguli, B. and Wand, M.P. (2005)
SemiPar 1.0 Users' Manual.
http://matt-wand.utsacademics.info/SPmanu.pdf

See Also

spm plot.spm lines.spm predict.spm summary.spm fitted.spm

Examples

1
2
3
4
5
6
library(SemiPar)
data(fossil)
attach(fossil)
fit <- spm(strontium.ratio~f(age))
plot(age,residuals(fit))
abline(0,0)

SemiPar documentation built on May 2, 2019, 5:42 a.m.