bayes_binom_one_postprob_onestage {EurosarcBayes} | R Documentation |
Bayesian single-arm single-endpoint minimum sample size
Description
Generate minimum sample size for the Bayesian 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
bayes_binom_one_postprob_onestage(p0, p1, eta, zeta, prior.a,
prior.b, round=TRUE)
shiny_binom_single_onestage()
Arguments
p0 |
Probability of success under the null hypothesis |
p1 |
Probability of success under the alternative hypothesis |
eta |
The smallest probability that p is less than p1 which is allowed to stop for futility |
zeta |
The smallest probability that p is greater than p0 which is allowed to stop for efficacy |
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
See Also
bayes_binom_one_postprob_nstage
Examples
p0=0.1
p1=0.3
eta=c(0.9)
zeta=c(0.9)
prior.a=0
prior.b=0
bayes_binom_one_postprob_onestage(p0,p1,eta,zeta,prior.a,prior.b)
[Package EurosarcBayes version 1.1 Index]