Skip to content

How to make Ordinary Kriging using gstat predict?

5 messages · S Ellison, DIMITRIS KARAKOSTIS, Jon Olav Skoien

#
The gstat manual at http://www.gstat.org/gstat.pdf says on p16 that  "When no variograms are specified, inverse distance weighted interpolation
is the default action (Fig. 2.1, example [6.3]).
When variograms are specified the default prediction method is ordinary
kriging Journel and Huijbregts (1978); Cressie (1993) (example [6.4] and
example [6.8])."

It looks like reading that manual may be useful ...

S Ellison

*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}
1 day later
#
Hi Dimitris,

The mistake is that predict.gstat doesnt have a "model" argument, as you 
assume. But as the function also accepts arguments through ..., it does 
not complain about the unused argument.
Try instead to put the model argument in the gstat-object as you can see 
in the example in ?predict.gstat:

g <- gstat(id="tec", formula=TEC ~ 1, data=data, model = v.fit)

Cheers,
Jon

BTW, you will generally get quicker response to questions regarding any 
kind of spatial data handling from the mailinglist r-sig-geo at r-project.org.
On 17-Dec-12 18:58, DIMITRIS KARAKOSTIS wrote: