Skip to content
Prev 24810 / 398502 Next

Error in Fields TPS function {svd ...} again

It helped to have your example:
[1] 606   2
V1               V2
 Min.   :0.0000   Min.   :   0.0
 1st Qu.:0.0000   1st Qu.:   3.0
 Median :0.0000   Median :  36.0
 Mean   :0.3977   Mean   : 247.6
 3rd Qu.:0.0000   3rd Qu.: 149.9
 Max.   :7.0000   Max.   :4680.0
0   1   2   3   4   5   6   7
488  64  24  10   7   9   2   2

Tps(x, Y, ...) expects x to be a matrix, in the geostatistical "world
view" of the locations of the observations in say 2d or 3d:
Error in svd(tempM) : error  159  in dsvdc

The distribution of your Y makes it look like counts, both x and Y have
smaller numbers of unique values than n=606:
[1] 8
[1] 161
shows that the data are rather different from the ones in example(Tps). So
this doesn't look like a typical numerical problem, but Tps being used on
data for which it was not designed, and failing to trap this state.

Roger



 I  get the message: