makeCRM: Defining a spatial correlogram model

Description Usage Arguments Details Value Author(s) Examples

View source: R/makeCRM.R

Description

Function that generates a spatial correlogram model, an object of class "SpatialCorrelogramModel".

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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 (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.

Value

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

Author(s)

Kasia Sawicka, Gerard Heuvelink

Examples

1
2
mycormodel <- makeCRM(acf0 = 0.8, range = 300, model = "Exp")
str(mycormodel)

spup documentation built on May 1, 2020, 1:07 a.m.