cmod_man function

Manual covariance models for geostatistical data.

Manual covariance models for geostatistical data.

cmod_man manually creates a covariance model object (cmodMan) for geostatistical data.

cmod_man(v, evar = 0)

Arguments

  • v: The covariance matrix of the observed data, including any errors. The matrix should be square, symmetric, and positive definite, though that latter two conditions are not checked.
  • evar: The variance of the errors. Must be non-negative number. The default is 0.

Returns

Returns a cmodMan object.

Details

Note that v includes the error variance, i.e., v = vz + ve, where vz is the covariance matrix of the filtered process and the variance matrix of the errors is ve = diag(evar/weights), where the weights come from the geolm object the cmodMan object is associated with.

Examples

coords = matrix(runif(6), ncol = 2) d = as.matrix(dist(coords)) cmod_man(v = exp(-d), evar = 1)

Author(s)

Joshua French

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

Useful links