powered by
Returns the vector of residuals for a model fit of class "kspm".
# S3 method for kspm residuals(object, ...)
an object of class "kspm", usually, a result of a call to kspm.
kspm
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).
kspm for fitting model, nobs.kspm, rstandard.kspm.
# NOT RUN { x <- 1:15 y <- 3*x + rnorm(15, 0, 2) fit <- kspm(y, kernel = ~ Kernel(x, kernel.function = "linear")) residuals(fit) # }
Run the code above in your browser using DataLab