geolm_fit {gear}R Documentation

Fit a geolm

Description

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").

n

The number of observations.

call

The match.call for the geolm.

coeff_names

A character string with the variable names associated with the coefficents.

Value

Returns a geolm with necessary components needed for estimate and predict.

Author(s)

Joshua French

Examples

# no examples since you shouldn't be using this function!

[Package gear version 0.3.4 Index]