cov_spatial {convoSPAT} | R Documentation |
Calculate spatial covariance.
Description
This function replaces the geoR function cov.spatial
, which
is now defunct.
Options available in this package are: "exponential
",
"matern"
, and "gaussian"
.
Usage
cov_spatial(
Dist.mat,
cov.model = "exponential",
cov.pars = c(1, 1),
kappa = 0.5
)
Arguments
Dist.mat |
A matrix of scaled distances. |
cov.model |
A string specifying the model for the correlation
function; defaults to |
cov.pars |
Fixed values; not used in the function. |
kappa |
Scalar; value of the smoothness parameter. |
Value
This function returns a correlation matrix.
Examples
Distmat <- as.matrix(dist(matrix(runif(20), ncol = 2), diag = TRUE, upper = TRUE))
C <- cov_spatial( Dist.mat = Distmat )
[Package convoSPAT version 1.2.7 Index]