https://github.com/cran/gstat
Tip revision: 6664f35fa8599a10bc2657fe3b1d1554d10a8d58 authored by Edzer Pebesma on 26 October 2011, 18:00:02 UTC
version 1.0-8
version 1.0-8
Tip revision: 6664f35
fit.Rout.save
R version 2.13.2 (2011-09-30)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-pc-linux-gnu (64-bit)
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
Loading required package: spacetime
Loading required package: zoo
Attaching package: 'zoo'
The following object(s) are masked from 'package:base':
as.Date
Loading required package: xts
> 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.878087 1567.749
Warning message:
In fit.variogram(v, vgm(1, "Sph", 300, 0), warn.if.neg = TRUE) :
partial sill or nugget fixed at zero value
> fit.variogram(v, vgm(1, "Sph", 300, 0),warn.if.neg=FALSE)
model psill range
1 Nug 0.000000 0.000
2 Sph 7.878087 1567.749
>