Description Usage Arguments Details Value Author(s) References See Also Examples
Computes the sample empirical (sample) covariogram described in Christensen, Moller and Waagepetersen (2000).
Output is returned as a binned covariogram
. The function is NOT
a general function for computing the covariogram, and it is in fact of
very limited use.
1 2 3 4 |
geodata |
a list containing elements |
coords |
an n x 2 matrix containing
coordinates of the n data locations in each row.
Default is |
data |
a vector or matrix with data values.
If a matrix is provided, each column is regarded as one variable or realization.
Default is |
units.m |
n-dimensional vector of observation times for the data. By default ( |
uvec |
a vector with values defining the covariogram binning. The
values of |
bins.lim |
separating values for the binning. By default these values are defined via the argument of
|
estimator.type |
|
max.dist |
a number defining the maximal distance for the covariogram. Pairs of locations separated by a larger distance than this value are ignored in the covariogram calculation. Default is the maximum distance between pairs of data locations. |
pairs.min |
An integer number defining the minimum number of pairs for the bins. Bins with number of pairs smaller than this value are ignored. |
Covariograms can be used in geostatistical analysis for exploratory purposes, to estimate covariance parameters and/or to compare theoretical and fitted models against the empirical covariogram.
The covariogram computed by this function assumes a specific model, a spatial GLMM, and furthermore it assumes that the link-function is the logarithm (i.e. it should not be used for the binomial-logistic model !).
Assume that the conditional distribution of Y_i given S_i
has mean t_i*exp(S_i), where the values of t_i are given in units.m
.
The estimator implemented is
hat{C}(u) = log(frac{1/|W_u^{Δ}|∑_{(i,j) in W_u^{Δ}} Y(x_i)*Y(x_j) /(t_i*t_j)}{(1/n sum_i Y(x_i)/t_i)^2}), u > 0
When a Poisson distribution is assumed, then
hat{C}(0) = log(frac{1/n sum_i Y(x_i)*(Y(x_i)-1)/t_i^2}{(1/n sum_i Y(x_i)/t_i)^2}).
An object of the class covariogram
which is a
list with the following components:
u |
a vector with distances. |
v |
a vector with estimated covariogram values at distances given
in |
n |
number of pairs in each bin. When |
v0 |
the estimate of sigma^2, \hat{C}(0). |
bins.lim |
Separating values for the binning provided in the function call. |
estimator.type |
echoes the type of estimator used. |
call |
The function call. |
Ole F. Christensen OleF.Christensen@agrsci.dk,
Paulo J. Ribeiro Jr. Paulo.Ribeiro@est.ufpr.br.
Christensen, O. F., Moller, J. and Waagepetersen R. (2000). Analysis of spatial data using generalized linear mixed models and Langevin-type Markov chain Monte Carlo. Research report R-00-2009, Aalborg University.
Further information about geoRglm can be found at:
http://gbi.agrsci.dk/~ofch/geoRglm.
covariog.model.env
for
covariogram envelopes and plot.covariogram
for graphical
output.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.