library(gsDesign2)
library(dplyr)
# Calculate conditional power under arbitrary theta and info
# In practice, the value of theta and info commonly comes from a design.
# More examples are available at the pkgdown vignettes.
gs_cp_npe(theta = c(.1, .2),
info = c(15, 35),
a = 1.5, b = 1.96)
Run the code above in your browser using DataLab