deviance.kspm {KSPM} | R Documentation |
Returns the deviance of a fitted model object of class "kspm".
## S3 method for class 'kspm'
deviance(object, ...)
object |
an object of class "kspm", usually, a result of a call to |
... |
additional optional argument (currently unused). |
This function extracts deviance of a model fitted using kspm
function. The returned deviance is the residual sum of square (RSS).
The value of the deviance extracted from the object object
.
Catherine Schramm, Aurelie Labbe, Celia Greenwood
x <- 1:15
y <- 3*x + rnorm(15, 0, 2)
fit <- kspm(y, kernel = ~ Kernel(x, kernel.function = "linear"))
deviance(fit)