Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

RMnugget

Nugget Effect Covariance Model


Description

RMnugget is a multivariate stationary isotropic covariance model called “nugget effect”. The corresponding covariance function only depends on the distance r ≥ 0 between two points and is given for i,j in 1,...,vdim by

C_{ij}(r) = δ_{ij} 1_{0}(r),

where δ_{ij}=1 if i=j and δ_{ij}=0 otherwise.

Usage

RMnugget(tol, vdim, var, Aniso, proj)

Arguments

tol

Only for advanced users. See RPnugget.

vdim

Must be set only for multivariate models (advanced).

var

optional argument; same meaning for any RMmodel. If not passed, the above covariance function remains unmodified.

Aniso,proj

(zonal modelling and repeated measurements(advanced)); see RPnugget for details.

Details

The nugget effect belongs to Gaussian white noise and is used for modeling measurement errors or to model spatial ‘nuggets’.

Value

RMnugget returns an object of class RMmodel.

Author(s)

See Also

RMmodel, RFsimulate, RFfit, RPnugget (advanced users).

Examples

RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set
##                   RFoptions(seed=NA) to make them all random again

x <- y <- 1:2
xy <- as.matrix(expand.grid(x, y)) ## we get 4 locations

## Standard use of the nugget effect
model <- RMnugget(var = 100)
RFcovmatrix(model, x=xy)
as.vector(RFsimulate(model, x=x, y=x, tol=1e-10))

RandomFields

Simulation and Analysis of Random Fields

v3.3.10
GPL (>= 3)
Authors
Martin Schlather [aut, cre], Alexander Malinowski [aut], Marco Oesting [aut], Daphne Boecker [aut], Kirstin Strokorb [aut], Sebastian Engelke [aut], Johannes Martini [aut], Felix Ballani [aut], Olga Moreva [aut], Jonas Auel[ctr], Peter Menck [ctr], Sebastian Gross [ctr], Ulrike Ober [ctb], Paulo Ribeiro [ctb], Brian D. Ripley [ctb], Richard Singleton [ctb], Ben Pfaff [ctb], R Core Team [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.