You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was playing around with fitting input functions, and I think I found a potential issue in blmod_exp_startpars(). When I have noisy data and get some negative values at the end of my AIF I would like to set them to zero. However, doing so means that line 20 bugs out, were it tries to do some fitting of the end of the AIF:
Actually, I see now that the user don't even have to set negative values to zero themselves. The fun blmod_tidyinput called early in blmod_exp sets all negative values in the AIF to zero with line
Hi,
Love the package, keep up the good work!
I was playing around with fitting input functions, and I think I found a potential issue in
blmod_exp_startpars()
. When I have noisy data and get some negative values at the end of my AIF I would like to set them to zero. However, doing so means that line 20 bugs out, were it tries to do some fitting of the end of the AIF:Produces
Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
NA/NaN/Inf in 'y'
I assume this is due to
log(abs(0))
producing-Inf
. Perhaps any zero values insideblood_exp_part3
can be filtered out?Here's a reproducible example (I think):
The text was updated successfully, but these errors were encountered: