fit.variogram(object, model, fit.sills = TRUE, fit.ranges = TRUE,
fit.method = 7, debug.level = 1, warn.if.neg = FALSE )
fit.method
, see table 4.2 in variogram.model
).This is a data.frame has two attributes: (i) singular
a logical
attribute that indicates whether the non-linear fit converged, or ended
in a singularity, and (ii) SSErr
a numerical attribute with the
(weighted) sum of squared errors of the fitted model. See Notes below.
Pebesma, E.J., 2004. Multivariable geostatistics in S: the gstat package. Computers & Geosciences, 30: 683-691.
data(meuse)
vgm1 <- variogram(log(zinc)~1, ~x+y, meuse)
fit.variogram(vgm1, vgm(1,"Sph",300,1))
Run the code above in your browser using DataLab