Displaying 1 result from an estimated 1 matches for "seemss".
Did you mean:
seems
2008 May 28
0
Sample size for 2-sample proportion tests
...needed to carry out a 2-sample
proprotion test.
I have the hypotesized treatment probability of success (0.80), the
hypotesized control probability of success (0.05), and also de proportion of
the sample devoted to treated group (5%), (fraction=rho=0.05, n2/n1=19).
Using the Hsmisc library, it seemss that I can use bsamsize (option 1) or
samplesize.bin (option 2, alpha=0.05 or option 3 alpha=0.05/2, I am not sure
after reading the help page) and I can use STATA (option 4).
library(Hmisc)
#OPTION 1:
bsamsize(p1=0.8, p2=0.05, fraction=0.05, alpha=.05, power=.9)
# n1 =2.09, n2=39.7, TOTAL=...