pcoords is not provided, then only V,
the covariance matrix of the observed responses will be returned.
If pcoords is provided, then Vp and Vop
(the covariance matrix for predicted responses and between observed and
predicted responses, respectively) will also be returned.cov.sp(coords, sp.type = "exponential",
sp.par = stop("specify sp.par argument"),
error.var = 0, smoothness = 0.5, finescale.var = 0,
pcoords = NULL, D = NULL, Dp = NULL, Dop = NULL)coords matrix. Must be of size $n \times n$.pcoords matrix. Must be of size $np \times np$.coords and the locations in pcoords. Must be of size $n \times np$.pcoords is supplied. Will be of size $np \times np$.pcoords is supplied. Will be of size $n \times np$.cov.spatial function in the
geoR package. The D, Dp, and Dop arguments are supplied to decrease the number of necessary computations needed when performing repetitive analysis or simulations. It is probably in the user's interest to not supply these arguments unless the duration of analysis is an important consideration. Note that these arguments override the information given in coords and pcoords, i.e., if dist1(coords) != D, then D is used in subsequent calculations, etc. This could create problems.
simple.cov.spcoords <- matrix(rnorm(30), ncol = 3)
cov.sp(coords = coords, sp.type = "exponential", sp.par = c(2, 1),
error.var = 1)Run the code above in your browser using DataLab