residuals.geolm {gear}R Documentation

Extract residuals from a geolm object

Description

Extract the residuals for an object produced by the geolm.

Usage

## S3 method for class 'geolm'
residuals(object, ...)

Arguments

object

An object produced by the geolm function.

...

Not currently implemented.

Value

The vector of residuals.

Author(s)

Joshua French

See Also

residuals

Examples

data = data.frame(y = rnorm(10), x1 = runif(10),
                 x2 = runif(10))
d = as.matrix(dist(data[,c("x1", "x2")]))
mod = cmod_man(v = exp(-d), evar = 1)
gearmod = geolm(y ~ x1, data = data,
                coordnames = ~ x1 + x2, mod = mod)
# fitted values for original observations
residuals(gearmod)

[Package gear version 0.3.4 Index]