autofitVgm {atakrig}R Documentation

Auto fit variogram for points.

Description

Auto fit variogram for points.

Usage

autofitVgm(x, y = x, ngroup = c(12, 15), rd = seq(0.3, 0.9, by = 0.1),
    model = c("Sph", "Exp", "Gau"), fit.nugget = TRUE, fixed.range = NA,
    longlat = FALSE, fig = FALSE, ...)

Arguments

x, y

values of areas, data.frame(areaId,centx,centy,value).

ngroup

number of bins to average from semivariogram cloud.

rd

ratio of max distance between points to be considered for bins.

model

variogram model defined in gstat::vgms(), e.g. "Exp", "Sph", "Gau".

fit.nugget

fit variogram nugget or not.

fixed.range

variogram range fixed or not.

longlat

indicator whether coordinates are longitude/latitude.

fig

whether to plot fitted variogram.

...

additional parameters passed to gstat::vgm().

Value

model

fitted variogramModel.

sserr

fit error.

bins

binned gstatVariogram.

Note

The auto-search strategy was derived from automap::autofitVariogram(). The function tries different initial values of vgm to find the best fitted model.


[Package atakrig version 0.9.8 Index]