Repository navigation
ENH: hypothesis tests, confint, power for rates (poisson, negbin) - #8166
Conversation
|
This pull request introduces 2 alerts when merging 50d2624 into 581119c - view on LGTM.com new alerts:
|
|
unit tests fail, silly |
50d2624 to
7db7e83
Compare
|
This pull request introduces 1 alert when merging 7db7e83 into 84307f1 - view on LGTM.com new alerts:
|
7db7e83 to
e8a1fb0
Compare
|
This pull request introduces 1 alert when merging e8a1fb0 into 84307f1 - view on LGTM.com new alerts:
|
|
azure is all green except for an unrelated test failure on one machine |
|
This pull request introduces 1 alert when merging 82672bb into 84307f1 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging f91176f into 84307f1 - view on LGTM.com new alerts:
|
|
commit "ENH: add confint_poisson_2indep (only wald, sqrt)" is incomplete, at wherever I stopped last week (before getting lost in readings.) update: amended commit now "ENH: add diff compare, add confint_poisson_2indep" |
|
R tolerance package has poistol.int, which uses 1 sample confint as in Barker 2002 related to #6979 |
3e8519a to
b4a5c53
Compare
|
This pull request introduces 2 alerts when merging b4a5c53 into 408eae8 - view on LGTM.com new alerts:
|
|
need to clear up E-test and docs My version is not the original Krishnamoorty and Thomson 2004 version However, I think equality testing (I don't know what the reference is that I actually used, I read many articles on E and EM tests) Also, the docstring(s) should mention that etest is for rare events (i.e. small counts). aside: explanation why there are several "exact" tests that don't give the same p-value update on etest and for wald |
|
another module location issue: I will add helper functions for MOVER confidence intervals, diff, ratio and sum. Those are useful for both rates and proportions and in future likely also for other types of random variables. basic ztest, ttest also we will have issues with circular, lazy imports, |
|
This pull request introduces 1 alert when merging a082120 into 408eae8 - view on LGTM.com new alerts:
|
|
Hello @josef-pkt! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2022-06-20 16:24:32 UTC |
|
This pull request introduces 1 alert when merging 18ba26b into 408eae8 - view on LGTM.com new alerts:
|
| """ | ||
| n = exposure # short hand | ||
| rate = count / exposure | ||
| alpha = alpha / 2 # two-sided |
There was a problem hiding this comment.
bad redefinition in this case
I spend a second or third time more than an hour bug hunting because I used the wrong alpha
|
(this is not a small PR anymore) needs more unit tests still to add
additional methods: not much anymore, I'm getting tired of finding more methods maybe:
update maybe others based on simple pattern
|
|
woking on power again, update rates ratio R= rate2 / rate1 -- ours is reversed In my power function for 2indep, I mixed up the relabeling of 1 and 2, but in such a way that the solution is the same as PASS (unit tests pass), but internal names are inconsistent with a standard pattern that we want. |
|
improve internal names in power functions (for helper functions)?
Also we don't clearly distinguish between total exposure, nobs and individual exposure |
|
I had forgotten: check for the above: So the only bug left was nobs_ratio in power_poisson_diff_2indep almost ready to merge: check and finish api and docstrings |
73124e0 to
3062210
Compare
|
This pull request introduces 1 alert when merging 3062210 into 91423ba - view on LGTM.com new alerts:
|
|
notes on power_poisson_diff_2indep this uses non-pooled "alt" or "wald" under both null and alternative. v_null = v_alt This follows pass which only has the wald/alt version (plus a sqrt transformed version). (found again while cleaning up docstring) If I add pooled, then I could as well add full score for nonzero |
|
another default decision I currently have I did not see (or don't remember seeing) any recommendations in other articles to choose between method_var options. |
|
This pull request introduces 2 alerts when merging 7ac3fc3 into 91423ba - view on LGTM.com new alerts:
|
|
decision on signature of power functions: proportion should get the same another question: more design (in)consistency: |
7ac3fc3 to
482df93
Compare
|
This pull request introduces 2 alerts when merging 482df93 into 96c41cd - view on LGTM.com new alerts:
|
| if return_results: | ||
| res = HolderTuple( | ||
| power=pow_, | ||
| rate_pooled=rate_pooled, |
There was a problem hiding this comment.
rate_pooled only makes sense if value=0
now value can be also nonzero
we could use rates for "null" estimate given alternatvie, e.g. score restricted MLE.
drop for now ?
|
This pull request introduces 4 alerts when merging 432a4df into 96c41cd - view on LGTM.com new alerts:
|
… backwards compat
|
I will merge when green. basic results look fine |
|
no more LGTM complaints, merging |
|
oops, |
see #8138
collecting functions
It's not clear yet what will be in here and how it will be structured.
literature references are a bit all over the place.
It still open which options and methods will be available.
current plan
also includes
confint for poisson quantile and tolerance interval for predicting new observations. (the same can be added for binomial)
no default method for now.
I'm not sure what should be the default.