Description Usage Arguments Details Value Author(s)
Internal function used and called by the Variog.fit and the ProbForecastGOP functions to fit a parametric variogram model to an empirical variogram.
1 | model.fit(par.model,emp.variog,max.dist.fit,init.val,init.var,fix.nugget)
|
par.model |
character string giving the name of the parametric model to fit to the empirical variogram. Implemented models are exponential, spherical, gauss, gencauchy, and matern. |
emp.variog |
an object of the class emp.variog, output of the function |
max.dist.fit |
number giving the maximum distance considered when fitting the variogram. |
init.val |
numeric vector giving the initial values for the parameters. The number of initial values to be entered depends on the variogram model specified. |
init.var |
number giving an initial estimate for the variance parameter of the variogram. |
fix.nugget |
logical field indicating whether the nugget should be considered fixed or not. If TRUE the nugget effect will be assumed to be constant, and a value for the fixed nugget effect can be also provided. If the value provided is different from the one entered in the init.val field, then the value of the nugget effect is taken to be the one entered in the init.val field. |
The function estimates the parameters in the variogram model by minimizing the weighted least-square loss function.
- Defaults -
None.
The function returns a numeric vector with the estimates of the parameters of the parametric variogram model fitted to the empirical variogram.
Berrocal, V. J. (veroberrocal@gmail.com), Raftery, A. E., Gneiting, T., Gel, Y.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.