Repository navigation
Conversation
Member
Author
|
I think I will add this to 0.14 "pooled" can be changed to "score" or similar in a backwards compatible way (as alias) when we add power for non-zero null. |
Member
Author
|
I still cannot think of a (theoretical) justification for using either prop1 or prop2 for the null std. R also has only the pooled version, no option for changing it. e.g. |
Member
Author
|
One possible justification could be as a bound, i.e. we take the worst of the three options. here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #8675
This will not be in 0.14
No real theoretical justification, and might need other options in the future.
for example
Wang Chow use the same var or std under null and alternative in sample size formula.
My guess is that this corresponds to a wald test for proportions, which does not have good small sample properties.
Wang, Hansheng, and Shein-Chung Chow. “Sample Size Calculation for Comparing Proportions.” In Wiley Encyclopedia of Clinical Trials. John Wiley & Sons, Ltd, 2007. https://doi.org/10.1002/9780471462422.eoct005.
opposite direction
some articles add continuity correction to match more closely Fisher's exact test, which is conservative in small samples.
e.g.
last paragraph in note section with two references
https://search.r-project.org/CRAN/refmans/EnvStats/html/propTestPower.html
another article, Ury and Fleiss use the same var under null and alternative but add continuity correction
Ury, Hans K., and Joseph L. Fleiss. “On Approximate Sample Sizes for Comparing Two Independent Proportions with the Use of Yates’ Correction.” Biometrics 36, no. 2 (1980): 347–51. https://doi.org/10.2307/2529991.