23.06.2015 Views

Package 'Hmisc' - R

Package 'Hmisc' - R

Package 'Hmisc' - R

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

28 bpplot<br />

References<br />

Fleiss JL, Tytun A, Ury HK (1980): A simple approximation for calculating sample sizes for comparing<br />

independent proportions. Biometrics 36:343–6.<br />

Brittain E, Schlesselman JJ (1982): Optimal allocation for the comparison of proportions. Biometrics<br />

38:1003–9.<br />

Gordon I, Watson R (1996): The myth of continuity-corrected sample size formulae. Biometrics<br />

52:71–6.<br />

See Also<br />

samplesize.bin, chisq.test, binconf<br />

Examples<br />

bpower(.1, odds.ratio=.9, n=1000, alpha=c(.01,.05))<br />

bpower.sim(.1, odds.ratio=.9, n=1000)<br />

bsamsize(.1, .05, power=.95)<br />

ballocation(.1, .5, n=100)<br />

# Plot power vs. n for various odds ratios (base prob.=.1)<br />

n

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!