freq_binom_one_onestage {EurosarcBayes} | R Documentation |
Bayesian single-arm single-endpoint minimum sample size
Description
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.
Usage
freq_binom_one_onestage(p0, p1, alpha, power, prior.a=0, prior.b=0,
round=TRUE)
shiny_binom_single_onestage()
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 |
round |
Optionally round the probability outputs to 3 significant figures |
Value
Returns an object of class trialDesign_binom_one
Examples
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)
[Package EurosarcBayes version 1.1 Index]