Hallo! Does anybody know how to calculate a sample size estimation for proportions with continuity correction? ? I only found EpiR which seems to calculate without continuity correction: library(epiR) epi.studysize(treat = .65, control = .50, n = NA, sigma = NA, power = 0.80, r = 1, conf.level = 0.95, sided.test = 2, method = "cohort") $n [1] 340 Thanks! Karl
Frank E Harrell Jr
2009-Jun-02 15:03 UTC
[R] Sample size - proportion continuity correction
Karl Knoblick wrote:> Hallo! > > Does anybody know how to calculate a sample size estimation for proportions with continuity correction?That would lose power. Frank> > I only found EpiR which seems to calculate without continuity correction: > > library(epiR) > epi.studysize(treat = .65, control = .50, n = NA, sigma = NA, > power = 0.80, r = 1, conf.level = 0.95, sided.test = 2, method = "cohort") > $n > [1] 340 > > > Thanks! > Karl > > > > > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University
Seemingly Similar Threads
- epi.2by2
- R 2.0.0: namespaces, S4 classes & versioned package installation: failure to resolve correct pkg version
- Interrater and intrarater variability (intraclass correlationcoefficients)
- R 2.0.0: problem: installing --with-package-versions
- test Breslow-Day for svytable??