[R-sig-Geo] predict() LDL error

Edzer Pebesma edzer.pebesma at uni-muenster.de
Thu Jul 14 23:24:42 CEST 2011


The error message is an indication that you're predicting (kriging) with
a singular covariance matrix. The most frequent reasons for this are
duplicate observations [1] or perfect correlation in the
coregionalization model [2]. For [1], see ?remove.duplicates, for [2]
see argument correct.diagonal in ?fit.lmc.

On 07/14/2011 06:18 PM, Matevž Pavlič wrote:
> Hi all, 
> 
>  
> 
> i am trying to use categorical kriging for prediction of soil classes in an area. I am pretty new to using cat. kriging in R soI probably am making some beginers mistakes. Attached is a reproducable sample with sample data. 
> 
>  
> 
> When i try to use predict() i geta n error- I am pretty sure because some points are duplicated....in krige() function i use zerodist() which eliminates the LDL error, but i can't find a way to use it here....
> 
>  
> 
> I got this code (mostly) from the net, so i have some trouble understanding it...
> 
>  
> 
> thanks for any help and info about categorical kriging, 
> 
>  
> 
> m
> 
>  
> 
> 
> 
> 
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics      e.pebesma at wwu.de



More information about the R-sig-Geo mailing list