Thursday, 15 January 2015

In R, kriging gives "system is exactly singular" error -


I have a problem where my specific input generates an error.

  Library (kriging) x  

I honestly do what is wrong I do not know my formatting I've seen seems to combine well with example code.

The problem is, as mentioned by @mokli, that you have duplicate overviews. In this context, the same digit with the same x and y coordinates. The following code appears to be duplicate:

  coor = cbind (x, y) repeated [coor] # [1] false false false false false false false false false false false false # [13] FALSE True Truth False Wrong False True # [25] True Truth True Real True True Real False Wrong false false falsehood [Duplicate (Coral), # [, 1] [, 2] # [1,] 45 40 # [2] , 25 60 # [4,] 40 35 # [5,] 25 50 # [6,] 55 25 # [7,] 40 40 # [8,] 25 55 # [9,] 55 20 # [10, ] 40 35 # [11,] 25 50 # [12,] 50 20 # [13,] 25 45  

This leads to an unconnected congruent matrix in Kriging equations, Programmed to turn dgesv from the Lapack error. The solution is to remove the duplicate from the dataset.

The following dataset works:

  x = runif (100) y = runif (100) z = runif (100)) Krig = kriging (x, y, Z, lag = 3) Image (krig)  

Enter image details here


No comments:

Post a Comment