View source: R/residuals.asp.r
residuals.asp | R Documentation |
Extracts residuals from a semiparametric regression fit object.
## S3 method for class 'asp' residuals(object,...)
object |
a fitted |
... |
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.
plot.asp
, predict.asp
, summary.asp
, fitted.asp
data(fossil,package="SemiPar") attach(fossil) fit <- asp2(strontium.ratio~f(age)) plot(age,residuals(fit)) abline(0,0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.