geolm_fit function

Fit a geolm

Fit a geolm

geolm_fit fits a geolm based on the specified mod. This is effectively an internal function.

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.

Returns

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

Examples

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

Author(s)

Joshua French

  • Maintainer: Joshua French
  • License: GPL (>= 2)
  • Last published: 2020-04-10

Useful links