geolm_fit fits a geolm based on the
specified mod. This is effectively an internal
function.
Usage
geolm_fit(
mod,
x,
y,
coords,
mu,
weights,
formula,
coordnames,
n,
call,
coeff_names
)
Arguments
mod
A model object produced by one
of the cmod_* functions, e.g.,
cmod_std.
x
The matrix of covariates.
y
The vector of observed responses.
coords
The coordinates of the observed data set.
mu
A single numeric value indicating the consant
mean of the spatial process if simple kriging is
desired. Default is NULL, meaning that ordinary
or universal kriging should be used.
weights
A vector that is proportional to the reciprocal variances of the errors.
formula
An object of class
formula providing a symbolic
description of the model to be fitted. See Details of
this function and lm.
coordnames
A vector of length 2 with the names of the columns in data containing the coordinates, e.g., c("long", "lat").