deviance.kspm: Model deviance

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/devianceKspm.R

Description

Returns the deviance of a fitted model object of class "kspm".

Usage

1
2
## S3 method for class 'kspm'
deviance(object, ...)

Arguments

object

an object of class "kspm", usually, a result of a call to kspm, for which the deviance is desired.

...

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

kspm, extractAIC.kspm

Examples

1
2
3
4
x <- 1:15
y <- 3*x + rnorm(15, 0, 2)
fit <- kspm(y, kernel = ~ Kernel(x, kernel.function = "linear"))
deviance(fit)

KSPM documentation built on Aug. 10, 2020, 5:07 p.m.