makeCRM {spup} | R Documentation |
Defining a spatial correlogram model
Description
Function that generates a spatial correlogram model, an object of class "SpatialCorrelogramModel".
Usage
makeCRM(
acf0 = 1,
range = NA,
model,
anis,
kappa = 0.5,
add.to,
covtable,
Err = 0
)
Arguments
acf0 |
Aurocorrelation function value at distance near 0. Default is 1. Must fall in interval [0,1]. |
range |
Range parameter of the correlogram model component. |
model |
Model type, e.g. "Exp", "Sph", "Gau", "Mat" that vgm() accepts. See ?gstat::vgm() for more #' details. |
anis |
Anisotropy parameters. See ?gstat::vgm() for more details. |
kappa |
Smoothness parameter for the Matern class of variogram models. See ?gstat::vgm() for more #' details. |
add.to |
See ?gstat::vgm() (currently not in use) |
covtable |
See ?gstat::vgm() (currently not in use) |
Err |
Numeric. See ?gstat::vgm() for more details. |
Details
For the spatial variables allowed autocorrelation functions are listed in Table 4.1 of the gstat manual. Spatial correlation assumes stationarity, i.e. correlation depends only on the separation distance between points in space. Anisotropy is allowed. No nested models are allowed in the current version.
Value
An object of a class "SpatialCorrelogramModel". This is a list collating provided arguments.
Author(s)
Kasia Sawicka, Gerard Heuvelink
Examples
mycormodel <- makeCRM(acf0 = 0.8, range = 300, model = "Exp")
str(mycormodel)