residuals.spm {SemiPar} | R Documentation |
Extracts residuals from a semiparametric regression fit object.
residuals.spm(object,...)
object |
a fitted spm object as produced by spm() . |
... |
other possible arguments. |
Extracts residuals from a semiparametric regression fit object. The residuals are defined to be the difference between the response variable and the fitted values.
The vector of residuals.
M.P. Wand wand@maths.unsw.edu.au (other contributors listed in SemiPar Users' Manual).
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://www.maths.unsw.edu.au/~wand/papers.html
spm
plot.spm
lines.spm
predict.spm
summary.spm
fitted.spm
library(SemiPar) data(fossil) attach(fossil) fit <- spm(strontium.ratio~f(age)) plot(age,residuals(fit)) abline(0,0)