bayes_binom_one_postlike_nstage {EurosarcBayes} | R Documentation |
Single arm, any stage, cut-point calculator us posterior predictive distribution of a successful trial occurring to make the cuts.
Description
Generate cut-points given interim analyses at set numbers of patients for Bayesian posterior likelihood approach to stopping early for futility or efficacy
Usage
bayes_binom_one_postlike_nstage(reviews, prob.success, prob.failure,
eta, zeta, p0, p1, prior.a=1e-6, prior.b=1e-6, round=TRUE, warn=TRUE)
Arguments
reviews |
Vector of sample sizes to perform analysis at |
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 |
prob.success , prob.failure |
The probability of success and failure required to stop early at interim analysis |
prior.a , prior.b |
The prior parameters for the beta prior distribution |
round |
Optionally round the probability outputs to 3 significant figures |
warn |
Turn off warnings for designs which are not optimal |
Value
Returns an object of class trialDesign_binom_one
See Also
bayes_binom_one_postprob_onestage
Examples
reviews=c(7,18)
prob.success=c(0.9)
prob.failure=c(0.9)
eta=0.9
zeta=0.9
p0=0.1
p1=0.3
prior.a=1e-6
prior.b=1e-6
bayes_binom_one_postlike_nstage(reviews,prob.success,prob.failure,
eta,zeta,p0,p1,prior.a,prior.b)