Calculates all possible values of the E-P-value for testing p1-p0 greater than a provided null value psi.
ESTEP.rd(n0, n1, psi = 0, J = NULL, sided = 1, dec.places = 10, prin = FALSE)A list with elements
data sets (scalar or vector)
approximate p-value(s) before E-step
quasi-exact P-value(s) and equivalent T-value(s)
profile ML estimates of baseline probability
consistent code to select a single outcome
scalar null value of p1-p0
control sample size
treatment sample size
null value of risk difference p1-p0
index of single data set if desired
(1 or 2 sided test)
number of decimal places of output t-values and p-values.
outputs expected time and progress of calculation
Chris J. Lloyd
This function can take a long time for larger sample sizes. The computation time is of order (n0*n1)^2.
C.J. Lloyd (2022) Exact samples sizes for clinical trials subject to size and power constraints. Preprint. tools:::Rd_expr_doi("10.13140/RG.2.2.11828.94085")