Description Usage Arguments Details Value Author(s) Examples
evgram
computes the empirical semivariogram of
data
based on the specified formula
indicating the response and trend. See Details. The
variogram is twice the semivariogram. If a trend is
specified, then the semivariogram is constructed using
the residuals of lm(formula, data)
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
formula |
A formula describing the relationship
between the response and any covariates of interest,
e.g., response ~ 1. The variogram is computed for the
residuals of the linear model |
data |
A |
coordnames |
The columns of |
nbins |
The number of bins (tolerance regions) to use when estimating the empirical semivariogram. |
maxd |
The maximum distance used when calculating the semivariogram. Default is NULL, in which case half the maximum distance between coordinates is used. |
angle |
A single value (in degrees) indicating the starting direction for a directional variogram. The default is 0. |
ndir |
The number of directions for which to calculate a empirical semivariogram. The default is 1, meaning calculate an omnidirectional semivariogram. |
type |
The name of the estimator to use in the
estimation process. The default is |
npmin |
The minimum number of pairs of points to use in the semivariogram estimator. For any bins with fewer points, the estimate for that bin is dropped. |
longlat |
A logical indicating whether Euclidean
( |
verbose |
Logical value indicating whether
computation information should be printed. Default is
|
invert |
A logical value indicating whether the axes
of the coordinates should be inverted (i.e., the x- and
y-axis are switched). The default is |
Note that the directions may be different from other
packages (e.g., gstat
or geoR
packages)
because those packages calculate angles clockwise from
the y-axis, which is a convention frequently seen in
geostatistics (e.g., the GSLIB software library). If
invert = TRUE
, the directions should be the same.
Computing the empirical semivariogram for the residuals
of lm(response ~ 1)
will produce identical results
to simply computing the empirical semivariogram from the
original response. However, if a trend is specified (the
righthand side of ~ has non-trival covariates), then the
empirical semivariogram of the residuals will differ
from that of the original response. A trend should be
specified when the mean is non-stationary over the
spatial domain.
Returns an evgram
.
Joshua French
1 2 3 4 5 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.