New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SUMM/ENH/Overview: two sample proportion, independent #4828
Comments
overview table from Fagerland et al for confidence intervals
|
Difference between proportions
Ratio of proportions
OR
|
another reference Monte Carlo to compare 5 confidence intervals for diff of two proportions. |
parking a reference, correction that found a mistake in the Monte Carlo Schoder, Volker. 2002. “Test Statistics and Sample Size Formulae for Comparative Binomial Trials with Null Hypothesis of Non-Zero Risk Difference or Non-Unity Relative Risk by C. P. Farrington and G. Manning, Statistics in Medicine 1990; 9:1447–1454.” Statistics in Medicine 21 (13): 1958–60. https://doi.org/10.1002/sim.1242. |
I just saw a new book Pradhan, Vivek, Ashis Gangopadhyay, Sandeep Menon, Cynthia Basu, and Tathagata Banerjee. 2021. Confidence Intervals for Discrete Data in Clinical Research. Boca Raton: Chapman and Hall/CRC. https://doi.org/10.1201/9781315169859. However, based on TOC, it has less than what we already have possibly what we don't fully have yet: 2 sample paired proportions (AFAIR, that's just McNemar, but I don't know if we include confint, it should reduce just to one sample confint for the test statistic) I didn't check how much the book covers "exact" methods. |
power for 2-sample equivalence tests |
overview tables for proportions #6399 |
our current equivalence test for proportion are individual functions This articles compares several method in Monte Carlo Barker, Lawrence, Henry Rolka, Deborah Rolka, and Cedric Brown. 2001. “Equivalence Testing for Binomial Random Variables.” The American Statistician 55 (4): 279–87. https://doi.org/10.1198/000313001753272213. (we need more systematic functions in proportions) |
update: basic non-exact methods merged in #2605, original PR #4829, issue #2605
two sample binomial proportion analogue to Poisson rates
#2718, https://github.com/josef-pkt/misc/wiki/Exact-and-Asymptotic-Tests---Rates,-Poisson
and one-sample proportion
https://github.com/josef-pkt/misc/blob/7fb0160bb7f8fd5eef00e276c61ec7fbe2e20238/notebooks/proportion_one_power.ipynb
#3954 more general issue, rates, proportion, paired sample, ...
results
comparisons/hypothesis
value
value=0
for diff, orvalue=1
for ratiosBasic version needs two-sided and one-sided alternative
TOST equivalence can reuse one-sided with value != 0.
Equality tests can take advantage of permutation or similar "exact" methods. E.g. fisher's exact test.
methods
the list of methods differs by references, e.g. PASS/NCSS documentation,
Newcombe 1998 has 11 methods for
diff
confintFagerland at al 2015 have 6-8 methods for confint for each diff, ratio and odds ration, not including berger boos
https://doi.org/10.1080/10543406.2018.1452028 has 97 methods according to title for one-sided diff inference.
I guess we get at least 5 to 10 including options, e.g.
nobs / (nobs - 1)
) or skewness/Bartlett correction (Gart and Nam)e-test
: use MLE for nuisance parametersup
sup/max over nuisance parameterberger-boos
conditional
only available for odds-ratio cases (analogue to fisher's exact test, both margins fixed)most likely I ignore this case for the general functions
What's available in various issues/PRs and what's missing?
confint
#2605 issue, josef-pkt#5 score_confint code from PropCI
and code in issue comments
#2608 PR hypothesis tests for equality, including exact, berger-boos,
#2607 issue for exact
model analogue, GLM
score and profile loglike confint
#4798 (comment)
#1791
code structure, API
public
confint_proportion_2indep
draft version (draft version, uncommitted)test_proportion_2indep
, ? not written yet, maybe as analogue to confint function???
internal
classes or functions, e.g. #2608 uses class for exact and berger-boos
confint_proportion_2indep
is a single function with code for wald confint inside, but needs to delegate for score and exact confintsmore complex confint will need tests as helper functions, for simple cases we can compute confint directly.
power, sample size: I haven't looked yet. NCSS uses exact computation for asymptotic/approximate tests and confint, at least for small samples
The text was updated successfully, but these errors were encountered: