model.fit {RGeostats}R Documentation

Automatic Sill Fitting

Description

Fit the Sill matrices of a Model according to experimental Variograms

Usage

model.fit(vario, model, constraints=NA, wmode=2, maxiter = 100, draw = TRUE, 
	flag.ask = NA, flag.fit = TRUE, verbose=0, ...)

Arguments

vario

The vario-class Class containing the experimental variogram

model

The model-class Class containing the Model to be fitted

constraints

Constant valur used as the constraints on the sills of the model. In the multivariate case, it applies to the sill of each variable. This value must be positive. Otherwise, no constraints is applied on the Sill estimation.

wmode

Type of the weighting function used in the fitting procedure. This function is defined in the case of several directional experimental variograms, calculated in a multivariate case:

  • 0: The weight is constant

  • 1: The weight is proportional to the number of pairs

  • 2: The weight is proportional to the number of pairs and inverse proportional to the distance

  • 3: The weight is inverse proportional to the number of lags for each direction

maxiter

Maximum number of iterations in the fitting procedure.

draw

When TRUE, both the experimental variograms and the Model are represented graphically. Otherwise, no graphic is produced.

flag.ask

When TRUE, the parameters of the model are entered interactively. When FALSE and if a model is provided as an argument, the automatic sill takes place and no question is asked. When not defined, its value is defaulted to FALSE if a model is provided and to TRUE otherwise

flag.fit

When TRUE, the automatic sill fitting algorithm is switched ON. Otherwise, the user must define the sills.

verbose

Verbose option

  • 1 Indications are given regarding the convergence of the algorithm used for automatic model fitting.

  • 0 No message is printed except the warning when convergence is not reached

  • -1 Silent mode

...

Arguments passed to vario.plot and model.plot.


[Package RGeostats version 14.0.10 Index]