Exercise

Comparing two proportions (2)

Now we have calculated the pooled estimate \(\hat{p}\), we can move on to calculate the standard error. The formula for the standard error is the following:

$$se = \sqrt{\hat{p} * (1 - \hat{p}) * (\frac{1}{n1} + \frac{1}{n2})}$$

Instructions

100 XP
  • The pooled estimate is given in the sample code. It is named pooled. Use this variable to calculate the standard error and store this in the variable called se. Remeber that the sample sizes n1 = 100 and n2 = 150