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: transreg confing with LR option #4

Closed yushuf closed 7 years ago

yushuf commented 7 years ago

Still sometimes the following error appears.

Error in uniroot(parm_d, treg$coefficients[parm] + c(-1.25, -0.75) z : no sign change found in 1000 iterations Calls: write.csv ... confint.transreg -> sapply -> lapply -> FUN -> uniroot Execution halted

ekenah commented 7 years ago

Please attach data files for which the error occurred so I can replicate it. How often does this error occur?

yushuf commented 7 years ago

here is the data files. difficult to say how frequently it is happening. This appeared in my third test on hypergator. That means in 8th iteration that appeared.

Thanks

On Mon, Jun 26, 2017 at 2:12 PM, Eben Kenah notifications@github.com wrote:

Please attach data files for which the error occurred so I can replicate it. How often does this error occur?

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

ekenah commented 7 years ago

I don't know what "8th iteration" means. I am looking for an answer like "This happened three times in five hundred simulations."

I also don't see the data files.

ekenah commented 7 years ago

It looks like the problem occurs when the model tries to calculate likelihood ratio confidence intervals for a model in which there is a very small number of internal infections in one of the four possible covariate combinations. This is not a transreg error; it is a limitation of the likelihood itself.