inst/snippets/Exploration3.2.11.R

p.hat <- 0.80         # given sample proportion
sd                    # previously found simulated standard deviation
MoE <- 2 * sd; MoE    # margin of error for 95% CI
p.hat - MoE           # lower limit of 95% CI
p.hat + MoE           # upper limit of 95% CI
rpruim/ISIwithR documentation built on May 28, 2019, 1:30 a.m.