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                          

Try the Lock5withR package in your browser

Any scripts or data that you put into this service are public.

Lock5withR documentation built on May 2, 2019, 3:43 p.m.