covmodel {constrainedKriging}R Documentation

Create isotropic covariance model

Description

Function to generate isotropic covariance models, or add an isotropic covariance model to an existing isotropic model.

Usage

covmodel(modelname, mev, nugget,variance, scale, parameter, add.covmodel)

## S3 method for class 'covmodel'
print(x, ...)

Arguments

modelname

a character scalar with the name of an isotropic covariance model, see Details for a list of implemented models. A call of covmodel() without any function argument displays a table with all available models and their parameters, see Examples.

mev

a numeric scalar, variance of the measurement error.

nugget

a numeric scalar, variance of microstructure white noise process with range smaller than the minimal distance between any pair of support data.

variance

a numeric scalar, partial sill of the covariance model.

scale

a numeric scalar, scale ("range") parameter of the covariance model.

parameter

a numeric vector of further covariance parameters, missing for some model like nugget, spherical or gauss, etc, see Details. If a model has several extra parameters, say a, b, ... then they must be given as c(a, b, ...).

add.covmodel

an object of the class covmodel that is added to the covariance model defined by modelname (see examples)

x

a covariance model generated by covmodel

...

further printing arguments

Details

The name and parametrisation of the covariance models originate from the function CovarianceFct of the archived package RandomFields, version 2.0.71.

The following isotropic covariance functions are implemented (equations taken from help page of function CovarianceFct of archived package RandomFields, version 2.0.71, note that the variance and range parameters are equal to 1 in the following formulae and h is the lag distance.):

The default values of the arguments mev, nugget, variance and scale are eq 0.

Value

an object of the class covmodel that defines a covariance model.

Author(s)

Christoph Hofer, christoph.hofer@alumni.ethz.ch

Examples

# table with all available covariance models and their
# parameters
covmodel()

# exponential model without a measurement error and without a nugget,
# partial sill = 10, scale  parameter = 15
covmodel(modelname = "exponential", variance = 10, scale = 15)

# exponential model with a measurement error ( mev = 0.5) and a
# nugget (nugget = 2.1), exponential partial  sill (variance = 10)
# and scale parameter = 15
covmodel(modelname = "exponential", mev  = 0.5, nugget = 2.1,
variance = 10, scale = 15)

[Package constrainedKriging version 0.2-7 Index]