Create a plot of power as a function of sample size for an upper-tail binomial exact test using simple null and alternative hypotheses, a maximum Type I error rate, and an optional power target.

power_plot(h_0, h_1, alpha = 0.05, line = 0)

Arguments

h_0

double

h_1

double

alpha

double

line

double

Value

plot

Examples

power_plot(h_0 = 0.5, h_1 = 0.6, alpha = .05, line = 0.80)