geolm_fit: Fit a 'geolm'

Description Usage Arguments Value Author(s) Examples

View source: R/geolm_fit.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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

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

gear documentation built on April 14, 2020, 5:12 p.m.

Related to geolm_fit in gear...