mfasiolo / qgam

Additive quantile regression R package
http://mfasiolo.github.io/qgam/
30 stars 7 forks source link

Error for small n (if (abs(old.score - score) > score.scale * conv.tol)) #33

Closed florianhartig closed 4 years ago

florianhartig commented 4 years ago

Hi Matteo,

I've been considering to switch from to qgam for the plots in DHARMa (see https://github.com/florianhartig/DHARMa/issues/53), but I have the problem that for small n, I tend to get the error message

Error in if (abs(old.score - score) > score.scale * conv.tol) { : 
  missing value where TRUE/FALSE needed

Any ideas if this can be avoided?

mfasiolo commented 4 years ago

This is due to the loss smoothness getting too large in some cases, solved here 88f0d5834e3549b101e03062f88960fb1f82b830