View source: R/GeoKriglocWeights.R
GeoKriglocWeights | R Documentation |
Given a set of spatial locations (and possibly temporal instants) the function returns the vector (or matrix) of kriging weights, the covariance matrix used in the kriging system and, optionally, the inverse of the left-hand-side matrix dor a specified neighborhhod
GeoKriglocWeights(coordx, coordy=NULL, coordz=NULL, coordt=NULL, coordx_dyn=NULL,
corrmodel, distance="Eucl", grid=FALSE, loc, neighb=NULL,
maxdist=NULL, maxtime=NULL, method="cholesky", model="Gaussian",
n=1, nloc=NULL, param, anisopars=NULL,
radius=1, sparse=FALSE, time=NULL, which=1,
copula=NULL, X=NULL, Xloc=NULL, Mloc=NULL,parallel=TRUE)
coordx |
Numeric ( |
coordy |
Optional numeric vector giving an additional spatial coordinate
dimension. Ignored if |
coordz |
Optional numeric vector giving a third spatial coordinate dimension. |
coordt |
Optional numeric vector of temporal coordinates
(length |
coordx_dyn |
List of |
corrmodel |
Character string naming a valid correlation model.
See |
distance |
Character string specifying the spatial distance.
Default is |
grid |
Logical. If |
loc |
Numeric ( |
neighb |
Numeric; an optional positive integer indicating the order of the neighborhood. |
maxdist |
Numeric; an optional positive value indicating the distance in the spatial neighborhood. |
maxtime |
Numeric; an optional positive integer value indicating the order of the temporal neighborhood. |
method |
Character string indicating the matrix factorisation
used to solve the kriging system: |
model |
Character string specifying the random field type
(e.g.\ |
n |
Integer. Number of trials for Binomial random fields
(default |
nloc |
Integer. Number of trials for the prediction locations
in Binomial random fields (default |
param |
Named list of covariance and mean parameters.
See |
anisopars |
List with components |
radius |
Positive numeric value: sphere radius when
coordinates are lon/lat (default |
sparse |
Logical. If |
time |
Numeric vector of length |
which |
Integer ( |
copula |
Character string naming a copula when a non-Gaussian
dependence structure is used ( |
X |
Numeric matrix of spatio-temporal covariates at data locations. |
Xloc |
Numeric matrix of spatio-temporal covariates at prediction locations. |
Mloc |
Numeric; Vector of spatio(temporal) estimated means associated to predicted locations. |
parallel |
Logical; if |
The function builds the kriging system
\Sigma \mathbf{w} = \boldsymbol{\sigma}_0
where \Sigma
is the covariance matrix between observed
locations and \boldsymbol{\sigma}_0
the vector of
covariances between observed and prediction locations.
The solution \mathbf{w}
is returned together with \Sigma
and, optionally, \Sigma^{-1}
.
Universal kriging with covariates is supported; in that case the
generalised least squares estimate of the mean parameters is appended.
No actual prediction is carried out; for full kriging use
GeoKrig
.
An object of class KgWeights
, a list containing:
weights |
Numeric vector (or matrix) of kriging weights. |
covmat |
Covariance matrix |
invcov |
Inverse of |
beta |
Estimated regression coefficients when covariates are supplied. |
type |
Character string: |
model |
Input |
corrmodel |
Input |
spacetime |
Logical: |
sparse |
Logical: was a sparse algorithm used? |
loc |
Copy of the |
time |
Copy of the |
Moreno Bevilacqua, moreno.bevilacqua@uai.cl, Víctor Morales-Oñate, victor.morales@uv.cl, Christian Caamaño-Carrillo, chcaaman@ubiobio.cl
Gaetan, C. and Guyon, X. (2010) Spatial Statistics and Modeling. Springer-Verlag, New York.
GeoKrig
for full prediction,
GeoKrigloc
for local prediction,
GeoCovmatrix
for covariance model details,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.