inst/snippets/Example6.6.R

z.star <- qnorm(0.975); z.star               # critical value for 95% confidence
p.hat <- 0.5; p.hat                          
n <- ((z.star / 0.03)^2) * p.hat * (1 - p.hat); n                          
rpruim/Lock5withR documentation built on May 28, 2019, 1:31 a.m.