[R-sig-Geo] singular model fit

Javier Leon Patino j.leonpatino at uq.edu.au
Thu Sep 15 09:40:21 CEST 2011


Dear list,

I am aware there are many post dealing with singular model variogram fits but I have not been able to fix my problem even after re-scaling the coordinates and variables.

I am using fit.variogram(gstat) on the file 'trans.csv' (attached) and have tried several values for the range, sill and nugget and different models. The following gives me an ok variogram (from visual plot) but still a 'singular model' warning.

library(sp)
library(gstat)
points <- read.csv("trans.csv")
coordinates(points)=~x+y
depth.ivgm <- vgm(model='Gau',range=1000, psill=var(points$ln_depth))
depth.vgm <- fit.variogram(variogram(ln_depth~x+y, points), model=depth.ivgm)

Any ideas on why I am getting a singular fit? Is it the small number of samples used?

Cheers,

Javier

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20110915/9085bb28/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trans.csv
Type: application/octet-stream
Size: 3458 bytes
Desc: trans.csv
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20110915/9085bb28/attachment.obj>


More information about the R-sig-Geo mailing list