I need to calculate the sample size needed. The outcome variable is binary (0 if no, 1 if yes). I have three groups (e.g., group A, group B, group C). What I know (or assume) is that the proportions of "yes" for group A, group B and group C are 15%, 25% and 45%, respectively.
If I have two groups (two proportions), I would simply use the function "power.prop.test" in R (Power Calculations for Two-Sample Test for Proportions).
However, in this case, I have three groups and, accordingly, three proportions. Under this circumstance, which method/technique should I use to calculate the sample size to achieve 80% power and significance level of 0.5?
I can use R and Stata. Many thanks!