A numeric scalar representing the calculated statistical power.
Arguments
pt
A scalar. Probablity of success in experimental arm
nt
A scalar. Number of subject in experimental arm
pc
A scalar. Probablity of success in control arm
nc
A scalar. Number of subject in control arm
alpha
A scalar. One sided type I error rate.
nsim
A scalar. Number of replications to calculate power. Default
100,000.
seed
An integer. A seed for the random number generator to ensure
reproducibility. Note: For best practice, it is recommended to call
set.seed() outside of the function.