Summarizing the GRF’s correlation structure
The semivariogram can be computed with geoR::variog()
.
Some arguments:
option
:"bin"
(default) returns values of binned semivariogram"cloud"
returns the semivariogram cloud- i.e. points (hij,vij) with:
hij=||si−sj||
vij=12⋅(Z(si)−Z(sj))2
- i.e. points (hij,vij) with:
"smooth"
returns the kernel smoothed semivariogram
uvec
: to define the variogram binning (option = "bin"
).- if a scalar is provided, this is the default number of bins
- if not provided: 13 bins are calculated
max.dist
: maximum distance for the semivariogramtrend
: specifies the mean part of the model. By default,trend = "cte"
so the mean is assumed constant over the region.
A trend can be fitted using ordinary least squares: then variograms are computed using the residuals.