Description Usage Arguments Value Examples
Generate minimum sample size for the frequentist single-endpoint single-arm trial. Also provided a shiny app to evaluate the same thing with both frequentist and Bayesian methods side by side.
1 2 3 4 | freq_binom_one_onestage(p0, p1, alpha, power, prior.a=0, prior.b=0,
round=TRUE)
shiny_binom_single_onestage()
|
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 |
round |
Optionally round the probability outputs to 3 significant figures |
Returns an object of class trialDesign_binom_one
1 2 3 4 5 6 7 | p0=0.1
p1=0.3
alpha=0.1
power=0.8
prior.a=0
prior.b=0
freq_binom_one_onestage(p0,p1,alpha,power,prior.a,prior.b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.