Description Usage Arguments Details Value References See Also Examples
View source: R/freq_binom_one_simons_twostage_v.2.0.R
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.
1 2 3 4 | 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()
|
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" |
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.
Returns an object of class trialDesign_binom_one
Simon R. (1989). Optimal Two-Stage Designs for Phase II Clinical Trials. Controlled Clinical Trials 10, 1-10.
1 2 3 4 5 | p0=0.2
p1=0.35
alpha=0.1
power=0.8
freq_binom_one_simons_twostage(p0,p1,alpha,power)
|
Loading required package: shiny
Loading required package: VGAM
Loading required package: stats4
Loading required package: splines
Loading required package: data.table
Loading required package: plyr
Loading required package: clinfun
Trial design and properties for single arm, single endpoint trial designs
reviews success failure
13 NA 2
46 13 12
p0 : 0.2
p1 : 0.35
Alpha : 0.096
Power : 0.8
Exp(p0): 29.45
Exp(p1): 42.26
Eta : 0.958 0.91
Zeta : NA 0.901
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.