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