https://github.com/cran/gstat
Revision 9791d43f14076b6bb10f57ba5c0a159d64efec96 authored by Edzer J. Pebesma on 15 September 2006, 16:16:56 UTC, committed by cran-robot on 15 September 2006, 16:16:56 UTC
1 parent 81dbeab
Raw File
Tip revision: 9791d43f14076b6bb10f57ba5c0a159d64efec96 authored by Edzer J. Pebesma on 15 September 2006, 16:16:56 UTC
version 0.9-33
Tip revision: 9791d43
fit.Rout.save

R : Copyright 2005, The R Foundation for Statistical Computing
Version 2.2.1  (2005-12-20 r36812)
ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(gstat)
Loading required package: sp
> data(meuse)
> v=variogram(log(zinc)~1,~x+y,meuse,cutoff=500,wi=100)
> v$gamma=c(0.5,1,2,3,3)
> fit.variogram(v, vgm(1, "Sph", 300, 0),warn.if.neg=TRUE)
  model    psill    range
1   Nug 0.000000    0.000
2   Sph 7.874468 1567.017
Warning message:
partial sill or nugget fixed at zero value in: fit.variogram(v, vgm(1, "Sph", 300, 0), warn.if.neg = TRUE) 
> fit.variogram(v, vgm(1, "Sph", 300, 0),warn.if.neg=FALSE)
  model    psill    range
1   Nug 0.000000    0.000
2   Sph 7.874468 1567.017
> 
back to top