residuals.kspm: Extract residuals from a Kernel Semi Parametric Model

Description Usage Arguments Value Author(s) See Also Examples

View source: R/residualsKspm.R

Description

Returns the vector of residuals for a model fit of class "kspm".

Usage

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

Arguments

object

an object of class "kspm", usually, a result of a call to kspm.

...

additional optional argument (currently unused).

Value

A vector of residuals. The vector length is the number of observations used in model coefficients estimation (see nobs.kspm).

Author(s)

Catherine Schramm, Aurelie Labbe, Celia Greenwood

See Also

kspm for fitting model, nobs.kspm, rstandard.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"))
residuals(fit)

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