Exercise

# Exercise 3. Comparing to actual results - p

The final tally for the popular vote was Clinton 48.2% and Trump 46.1%. Add a column called `hit`

to `pollster_results`

that states if the confidence interval included the true proportion \(p=0.482\) or not. What proportion of confidence intervals included \(p\)?

Instructions

**100 XP**

- Finish the code to create a new object called
`avg_hit`

by following these steps. - Use the
`mutate`

function to define a new variable called 'hit'. - Use logical expressions to determine if each values in
`lower`

and`upper`

span the actual proportion. - Use the
`mean`

function to determine the average value in`hit`

and summarize the results using`summarize`

.