Learn R Programming

spup (version 1.2-1)

makeCRM: 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.

Value

An object of a class "SpatialCorrelogramModel". This is a list collating provided arguments.

Details

For the spatial variables allowed autocorrelation functions are listed in Table 4.1 of the gstat manual (http://www.gstat.org/gstat.pdf). Spatial correlation assumes stationarity, i.e. correlation depends only on the separation distance between points in space. Anisotropy is allowed (http://www.gstat.org/gstat.pdf). No nested models are allowed in the current version.

Examples

Run this code
# NOT RUN {
mycormodel <- makeCRM(acf0 = 0.8, range = 300, model = "Exp")
str(mycormodel)

# }

Run the code above in your browser using DataLab