[R] How to make Ordinary Kriging using gstat predict?

DIMITRIS KARAKOSTIS
2012-12-17T16:06:15Z

Hi,
I am new in R and trying to implement an algorithm which makes ordinary kriging
by using gstat library and the predict method.
I use the predict method as following:
First, I create an object g:
g <- gstat(id="tec", formula=TEC ~ 1, data=data) ## Create gstat
object called g
And then I use this object in the predict.
p <- predict.gstat(g, model=mod, newdata=predGrid, nsim=0)

My problem is that instead of Ordinary kriging, when I run the algorithm I get:
Inverse distance weighted interpolation.
Why is that? What am I missing or doing wrong?

Thanks in advance
Dimitris


	[[alternative HTML version deleted]]