fitVariograms: A function that fits variograms to empirical estimates

Usage Arguments Details Author(s)

Usage

1
2
3
fitVariograms(g = NULL, model = NULL, dir = NULL, correctDiagonal = 1,
  fitSills = TRUE, fitRanges = TRUE, forceNugget = FALSE,
  posNugget = FALSE)

Arguments

g

- An fstat structure.

model

- Variogram model of class 'vgm'.

dir

- Direction you wish to fit. Useful for fine tunning.

correctDiagonal

- Default = 1. Corrects the diagonal of the LMC sill matrix.

fitSills

- This is a convenience access parameter for fit.variogram

fitRanges

- This is a convenience access parameter for fit.variogram

forceNugget

- Whether to force the nugget to user specified value or to fit it (Boolean).

posNugget

- Whether to enforce the positivity of the nugget (Boolean). Not to be used with conventional cross variogram computation!

Details

It returns the fstat structure with an addtional slot models. This function will cycle through all available directions and fit either a single-variate variogram or an LMC structure (depending on the number of id's). variable dir is available for the purpose of fine tunning, i.e. different variogram for a different direction. In the backend, this code relies on the fit.variogram routine from the gstat package.

Author(s)

Ogy Grujic (ogyg@stanford.edu)


ogru/fdagstat documentation built on May 29, 2019, 7:19 a.m.