cmod.man: Standard covariance models for geostatistical data.

Description Usage Arguments Details Value Author(s) Examples

View source: R/cmod.man.R

Description

cmod.man manually creates a covariance matrix object (cmodMan) for geostatistical data. This function will be deprecated in the future. Please update your code to use the cmod_man function.

Usage

1
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.

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.

Value

Returns a cmodMan object.

Author(s)

Joshua French

Examples

1
2
3
coords = matrix(runif(20), ncol = 2)
d = as.matrix(dist(coords))
cmod.man(v = exp(-d), evar = 1)

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

Related to cmod.man in gear...