nhp <- n*2*h
s <- sqrt(p1*(1-p1)/nhp)
pb <- p1 - s*qnorm(power)
f <- 2*n*2*h*(pb*log(pb) + (1-pb)*log(1-pb) - log(0.5)) - (qnorm(alpha))^2
Any scripts or data that you put into this service are public.
Add the following code to your website.
Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.