residuals.kspm {KSPM} | R Documentation |
Extract residuals from a Kernel Semi Parametric Model
Description
Returns the vector of residuals for a model fit of class "kspm".
Usage
## S3 method for class 'kspm'
residuals(object, ...)
Arguments
object |
an object of class "kspm", usually, a result of a call to |
... |
additional optional argument (currently unused). |
Value
A vector of residuals. The vector length is the number of observations used in model coefficients estimation (see nobs.kspm).
Author(s)
Catherine Schramm, Aurelie Labbe, Celia Greenwood
See Also
kspm for fitting model, nobs.kspm, rstandard.kspm.
Examples
x <- 1:15
y <- 3*x + rnorm(15, 0, 2)
fit <- kspm(y, kernel = ~ Kernel(x, kernel.function = "linear"))
residuals(fit)
[Package KSPM version 0.2.1 Index]