Description Usage Arguments Value
Calculates the spatial variancecovariance matrix for a selection of correlation functions.
1 2 3 4 5 6 7 8 9 10 11  spcovariance(...)
## S3 method for class 'formula'
spcovariance(formula, data, subset, corrfcn, ssq, phi,
omg, kappa, longlat = FALSE, ...)
## S3 method for class 'numeric'
spcovariance(x, corrfcn, ssq, phi, omg, kappa, ...)
## S3 method for class 'dist'
spcovariance(x, corrfcn, ssq, phi, omg, kappa, ...)

... 
Further arguments. Not currently in use. 
formula 
A formula of the form 
data 
An optional data frame containing the variables in the model. 
subset 
An optional set of indices. The covariance will be calculated for those coordinates only. 
corrfcn 
The correlation function to use. 
ssq 
The partial sill parameter. 
phi 
The spatial range parameter. 
omg 
The relative nugget parameter. 
kappa 
The spatial smoothness parameter. 
longlat 
How to compute the distance between locations. If

x 
A numerical object of distances. 
For a formula input, a variancecovariance matrix. For a numeric input, an object of the the same dimensions as its first input.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.