# Question: i am looking for help with question 514 in sampling...

###### Question details

I am looking for help with question 5.14 in sampling Design and Analysis second edition by Sharon L. Lohr, I am to complete this question using R but am not familiar with the Coding for R

school | # of Students | # of female Student | # of female students interviewed | # of smokers |

1 | 1471 | 792 | 25 | 10 |

2 | 890 | 447 | 15 | 3 |

3 | 1021 | 511 | 20 | 6 |

4 | 1587 | 800 | 40 | 27 |

A researcher took an SRS of 4 high schools from a region with 29 high schools for a study on the prevalence of smoking among female high school students in the region. The results were as follows:

**a** Estimate the percentage of female high school
students in the region who smoke, along with a 95% CI.

**b** Estimate the total number of female high
school students in the region who smoke, along with a 95% CI.