freq_binom_one_simons_twostage {EurosarcBayes} | R Documentation |
Single arm, two stage, Binomial sample size calculator
Description
Sample size calculation for single arm, two stage designs (Simon's optimal and minmax designs) where stoping early for futility is permitted. Returns frequentist and Bayesian properties for the designs.
A shiny app is also provided. This is interactive for Simon's two stage design and also describes a number of multistage designs for the same problem.
Usage
freq_binom_one_simons_twostage(p0, p1, alpha, power, prior.a=0,
prior.b=0, nmax=100, round=TRUE, method="optimal")
shiny_binom_single_twostage()
Arguments
p0 |
Probability of success under H0 |
p1 |
Probability of success under H1 |
alpha |
The largest allowed value for the frequentist type one error |
power |
The smallest allowed frequentist power |
prior.a , prior.b |
The prior parameters for the beta prior distribution |
nmax |
The maximum sample size to search up to |
round |
Optionally round the probability outputs to 3 significant figures |
method |
Defining the method of optimisation. Either "optimal" or "minmax" |
Details
freq_binom_one_simons_twostage is a wrapper function. It uses ph2simon
from the clinfun package to generate optimal sample sizes for the the frequentist single arm, two stage designs. Frequentist and Bayesian properties are then calculated using properties_binom_one and then optimal and minimax designs are returned.
Value
Returns an object of class trialDesign_binom_one
References
Simon R. (1989). Optimal Two-Stage Designs for Phase II Clinical Trials. Controlled Clinical Trials 10, 1-10.
See Also
Examples
p0=0.2
p1=0.35
alpha=0.1
power=0.8
freq_binom_one_simons_twostage(p0,p1,alpha,power)