Learn R Programming

npsp (version 0.3-6)

covar: Covariance values

Description

Computes covariance values (or pseudo-covariances) given a variogram model or covariance estimates given a semivariogram estimate.

Usage

covar(x, h, ...)
"covar" (x, h, sill = x$sill, ...)
"covar" (x, h, sill = NULL, ...)

Arguments

x
variogram model (svarmod object) or semivariogram estimate.
h
vector (isotropic case) or matrix of lag values.
...
further arguments passed to or from other methods.
sill
(theoretical or estimated) variance $C(0) = \sigma^2$ or pseudo-sill (unbounded variograms).

Value

A vector of (pseudo) covariance values $C(h_i) = \sigma^2 - \gamma(h_i)$ or covariance estimates.

See Also

sv, varcov.