Hi Daniel,
The invcdfpoisson command you wrote appears to "hang" when the specified p-value is below a certain threshold. Here it works when the p-value is 0.007, but hangs when it is 0.006. In both cases, -qpois- in R returns 0.
0
I haven't been able to reproduce the error with the invcdfbinomial you wrote first, so I am hoping it's not an issue there as well.
Thanks again for your help! Your mata code is integral to the "exact" option in a package I wrote called -funnenlinst- (available from SSC).
Ariel
The invcdfpoisson command you wrote appears to "hang" when the specified p-value is below a certain threshold. Here it works when the p-value is 0.007, but hangs when it is 0.006. In both cases, -qpois- in R returns 0.
Code:
mata : invcdfpoisson(.9 * 2.26, .0007)
Code:
mata : invcdfpoisson(.9 * 2.26, .0006)
Thanks again for your help! Your mata code is integral to the "exact" option in a package I wrote called -funnenlinst- (available from SSC).
Ariel
Comment