Description Usage Arguments Value Note Author(s) See Also Examples
varMat will create a semivariogram matrix between all the supports in a set of locations (observations or prediction locations) or semivariogram matrices between all the supports in one or two sets of locations, and also between them.
1 2 3 4 5 6 7 8 9 10 11 12  ## S3 method for class 'rtop'
varMat(object, varMatUpdate = FALSE, fullPred = FALSE, params = list(), ...)
## S3 method for class 'SpatialPolygonsDataFrame'
varMat(object, object2 = NULL,...)
## S3 method for class 'SpatialPolygons'
varMat(object, object2 = NULL, variogramModel,
overlapObs, overlapPredObs, ...)
## S3 method for class 'list'
varMat(object, object2 = NULL, coor1, coor2, maxdist = Inf,
variogramModel, diag = FALSE, sub1, sub2,
debug.level = 1, ...)

object 
either: 1) an object of class 
varMatUpdate 
logical; if TRUE, also existing variance matrices will be recomputed, if FALSE, only missing variance matrices will be computed 
fullPred 
logical; whether to create the full covariance matrix also for the predictions, mainly used for simulations 
params 
a set of parameters, used to modify the standard parameters for
the 
object2 
if 
variogramModel 
variogramModel to be used in calculation of the semivariogram matrix (matrices) 
... 
typical parameters to modify from the default parameters of the
rtoppackage (or modifications of the previously set parameters for the

overlapObs 
matrix with observations that overlap each other 
overlapPredObs 
matrix with 
coor1 
coordinates of centroids of 
coor2 
coordinates of centreofgravity of 
maxdist 
maximum distance between areas for inclusion in semivariogrma matrix 
diag 
logical; if TRUE only the semivariogram values along the diagonal will be calculated, typical for semivariogram matrix of prediction locations 
sub1 
semivariogram array for subtraction of inner variances of areas 
sub2 
semivariogram array for subtraction of inner variances of areas 
debug.level 
debug.level >= 1 will give output for every element 
The lower level versions of the function calculates a semivariogram matrix
between locations in object
or between the locations in object
and the locations in object2
. The method for object of type rtop
calculates semivariogram matrices between observation locations, between prediction locations,
and between observation locations and prediction locations, and adds these
to object
.
The argument varMatUpdate
is typically used to avoid repeated computations
of the same variance matrices. Default is FALSE, which will avoid recomputation
of the variance matrix for the observations if the procedure is crossvalidation
before interpolation. Should be set to TRUE if the variogram Model has been
changed, or if observation and/or prediction locations have been changed.
If an rtop
object contains observations and/or predictionLocations of type
STSDF
, the covariance matrix is computed based on the spatial
properties of the object.
Jon Olav Skoien
1 2 3 4 5 6 7 8 9 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.