Calculate sample size and critical value for a single-stage binomial test.

binomial_test(alpha, beta, p0, p1)

Arguments

alpha

maximal type one error rate

beta

maximal type two error rate

p0

boundary of the null hypothesis

p1

point alternative