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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.