residuals.kspm {KSPM} | R Documentation |
Returns the vector of residuals for a model fit of class "kspm".
## S3 method for class 'kspm'
residuals(object, ...)
object |
an object of class "kspm", usually, a result of a call to |
... |
additional optional argument (currently unused). |
A vector of residuals. The vector length is the number of observations used in model coefficients estimation (see nobs.kspm).
Catherine Schramm, Aurelie Labbe, Celia Greenwood
kspm for fitting model, nobs.kspm, rstandard.kspm.
x <- 1:15
y <- 3*x + rnorm(15, 0, 2)
fit <- kspm(y, kernel = ~ Kernel(x, kernel.function = "linear"))
residuals(fit)