Pseudovariogram
Calculates the theoretical and empirical Pseudovariogram.
RFpseudovariogram(model, x, y=NULL, z = NULL, T=NULL, grid, params, distances, dim, ..., data, bin=NULL, phi=NULL, theta = NULL, deltaT = NULL, vdim=NULL)
model,params |
object of class |
x |
vector of x coordinates, or object of class |
y,z |
optional vectors of y (z) coordinates, which should not be given if |
T |
optional vector of time coordinates, |
grid |
logical; the function finds itself the correct value in nearly all cases, so that usually |
distances,dim |
another alternative for the argument |
... |
for advanced use: further options and control arguments for the simulation that are passed to and processed by |
data |
matrix, data.frame or object of class |
bin |
a vector giving the borders of the bins; If not specified an array describing the empirical (pseudo-)(cross-) covariance function in every direction is returned. |
phi |
an integer defining the number of sectors one half of the X/Y plane shall be divided into. If not specified, either an array is returned (if bin missing) or isotropy is assumed (if bin specified). |
theta |
an integer defining the number of sectors one half of the X/Z plane shall be divided into. Use only for dimension d=3 if phi is already specified. |
deltaT |
vector of length 2, specifying the temporal bins. The internal bin vector becomes |
vdim |
the number of variables of a multivariate data set. If not given and |
RFpseudovariogram
computes the empirical
pseudovariogram for given (multivariate) spatial data.
The spatial coordinates x
, y
, z
should be vectors. For random fields of
spatial dimension d > 3 write all vectors as columns of matrix x. In
this case do neither use y, nor z and write the columns in
gridtriple
notation.
If the data is spatially located on a grid a fast algorithm based on
the fast Fourier transformed (fft) will be used.
As advanced option the calculation method can also be changed for grid
data (see RFoptions
.)
an objects of class
RFempVariog
.
Martin Schlather, schlather@math.uni-mannheim.de, https://www.wim.uni-mannheim.de/schlather/
Gelfand, A. E., Diggle, P., Fuentes, M. and Guttorp, P. (eds.) (2010) Handbook of Spatial Statistics. Boca Raton: Chapman & Hall/CRL.
Stein, M. L. (1999) Interpolation of Spatial Data. New York: Springer-Verlag
RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set ## RFoptions(seed=NA) to make them all random again model <- RMbiwm(nudiag=c(1, 2), nured=1, rhored=1, cdiag=c(1, 5), s=c(1, 1, 2)) x <- seq(0, 20, 0.1) z <- RFsimulate(model, x=x, y=x, n=2) emp.vario <- RFpseudovariogram(data=z) plot(emp.vario, model=model)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.