Learn R Programming

gear (version 0.3.4)

eval.cmod: Evaluate covariance or semivariance model.

Description

eval.cmod evaluates the covariance of a model based on the provided arguments. This function will be deprecated in the future. Please use the evaluate function.

Usage

eval.cmod(mod, d, coords = NULL)

Arguments

mod

A covariance or semivariance model.

d

An \(n \times m\) matrix of distances.

coords

Not used.

Value

Returns the evaluated model with necessary components needed for estimate and predict.

Examples

Run this code
# NOT RUN {
n = 10
coords = matrix(runif(2*n), nrow = n, ncol = 2)
d = as.matrix(dist(coords))
cmod = cmod_std(model = "exponential", psill = 1, r = 1)
eval.cmod(cmod, d)
# }

Run the code above in your browser using DataLab