ekenah / TranStat

An R package for the analysis of infectious disease transmission data
GNU Lesser General Public License v3.0
8 stars 3 forks source link

Error in confint command with lr option #2

Closed yushuf closed 7 years ago

yushuf commented 7 years ago

confint(unobs_tr, type = "lr")

Error in uniroot(parm_d, treg$coefficients[parm] + c(-1.5, -0.5) z : f() values at end points not of opposite sign

The error is not too frequent but happens. I sent the input files through email

ekenah commented 7 years ago

This error occured when the lower LR confidence limit was outside the interval c(-1.5, -.5) z se(parm) or the upper LR confidence limit was outside c(.5, 1.5) z se(parm). I enabled the "expandInt" option in "uniroot" to allow the search interval to expand as needed. The error is fixed in version 0.2.3.

yushuf commented 7 years ago

Great! this is working now

Thanks

On Sun, Jun 25, 2017 at 1:09 AM, Eben Kenah notifications@github.com wrote:

This error occured when the lower LR confidence limit is outside the interval c(-1.5, -.5) z se(parm) or the upper LR confidence limit is outside c(.5, 1.5) z se(parm). I have used the "expandInt" option in "uniroot" to allow the search interval to expand as needed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ekenah/transtat/issues/2#issuecomment-310882935, or mute the thread https://github.com/notifications/unsubscribe-auth/AEkA31EQ5M4nuO4ioJ4cw7_O9ug6wM0Rks5sHet9gaJpZM4OEcvB .