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
ENH: power_proportions_2indep with value different of zero and different compare
#8251
Comments
bump for 0.15 need to go through the NCSS/PASS docs again and similarly for ratio of proportions see also #8676 check, implementation idea Can we reuse the test function with |
To using base nobs1=1 in test: For e.g. comparing nobs-normalized variance for cases nobs=1 versus nobs=100 versus nobs=1000
a simple solution would be two-step or iterative, using one of the other sample sizes as starting value for nobs1. |
here's the full version, all compare and methods, score only without correction Variance for odds-ratio methods logit-adjusted and logit-smoothed and ratio method log-adjusted for nobs1=1 looks strange. They are very small compare to larger nobs1.
|
power_proportions_2indep does not support
value
different from equality.Also, not
compare
option, which will become only relevant if non-zero null is supported.see comments at around here #8049 (comment)
I partially read Farrington and Manning 1990 again.
The main task is to add constrained parameter estimates as in score test. Using this as default extends the pooled estimate under the null and is backwards compatible.
Farrington and Manning also have the option of using the wald variance, which I guess is based on the proportions under the alternative.
It looks like this follows the same pattern as we have for poisson and negbin in PR #8166
F/M also have an estimate under fixed margins, but they mention that the samplesize or power estimates are not very good.
Aside: proportion has very few references
I cannot find anymore what I used to implement the power function.
The generic part is general in many references, but I don't know what the specific Binomial reference is (using the pooled estimate instead of (wald) props under alternative).
I guess the power for the equality test is also old and common.
e.g. Lachine 1981 Introduction to sample size determination and power analysis for clinical trials
eq. (12) but he uses fraction of total nobs instead of nobs_ratio, and sample size formula is for total nobs instead of nobs1.
(I had read it in the past, so it was one of the references, but not directly the one I implemented)
related
#6721 refactoring, reorganizing proportions
The text was updated successfully, but these errors were encountered: