powered by
Returns the deviance of a fitted model object of class "kspm".
# S3 method for kspm deviance(object, ...)
an object of class "kspm", usually, a result of a call to kspm, for which the deviance is desired.
kspm
additional optional argument (currently unused).
The value of the deviance extracted from the object object.
object
This function extracts deviance of a model fitted using kspm function. The returned deviance is the residual sum of square (RSS).
kspm, extractAIC.kspm
# NOT RUN { x <- 1:15 y <- 3*x + rnorm(15, 0, 2) fit <- kspm(y, kernel = ~ Kernel(x, kernel.function = "linear")) deviance(fit) # }
Run the code above in your browser using DataLab