Learn R Programming

gear (version 0.3.4)

residuals.geolm: Extract residuals from a geolm object

Description

Extract the residuals for an object produced by the geolm.

Usage

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

Arguments

object

An object produced by the geolm function.

...

Not currently implemented.

Value

The vector of residuals.

See Also

residuals

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab