Learn R Programming

geoRglm (version 0.9-16)

model.glm.control: Defines model options

Description

This auxiliary function defines model options for pois.krige.bayes and binom.krige.bayes.

Usage

model.glm.control(trend.d = "cte", trend.l = "cte", cov.model = "matern",
                  kappa = 0.5, aniso.pars = NULL, lambda = 0)

Arguments

trend.d

specifies the covariate values at the data locations. See documentation of trend.spatial for further details. Default is trend.d="cte".

trend.l

specifies the covariate values at prediction locations. It must be of the same type as for trend.d. Only used if prediction locations are provided in the argument locations.

cov.model

string indicating the name of the model for the correlation function. Further details in the documentation for cov.spatial.

kappa

additional smoothness parameter required by the following correlation functions: "matern", "powered.exponential", "gneiting.matern" and "cauchy".

aniso.pars

parameters for geometric anisotropy correction. If aniso.pars = NULL no correction is made, otherwise a two elements vector with values for the anisotropy parameters must be provided. Anisotropy correction consists of a transformation of the data and prediction coordinates performed by the function coords.aniso.

lambda

parameter controlling the link function for pois.krige.bayes. lambda = 0 is the default, which corresponds to a log link. Other values gives a link function from the Box-Cox class.

Value

A list with processed arguments to be passed to the main function.

See Also

pois.krige.bayes and binom.krige.bayes.