CHAPTER 10/HYPOTHESIS TESTING: CATEGORICAL DATA 259
10.116 In MINITAB, we generate 100 rows of random data following a Bernoulli(p=0.2) distribution, and store
in one column, then generate 100 rows of data coming from a Bernoulli(p=0.1) distribution, and store in
a second column. Then we use the “2 proportions” option to compare the two columns.
Test and CI for Two Proportions: Active, placebo
Event = 1
10.117 This problem is easiest to address in a programming language like R: The following code will give the
desired answer:
10.118 We use the power formula for comparing two binomial proportions (see Equation 10.14 in Chapter 10,
text)
Therefore, the power is given by: