Description Usage Arguments Value See Also Examples
View source: R/bayes_binom_one_postprob_nstage_v1.0.R
Generate cut-points given interim analyses at set numbers of patients for Bayesian posterior probability approach to stopping early for futility or efficacy
1 2 | bayes_binom_one_postprob_nstage(reviews, eta, zeta, p0, p1,
prior.a=0, prior.b=0, h0=p0, h1=p1, round=TRUE, warn=TRUE)
|
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 |
h0,h1 |
Optional values to be used if the properties of the design should be based on hypotheses which do not use the last values of p0 and p1. |
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 |
Returns an object of class trialDesign_binom_one
bayes_binom_one_postprob_onestage
1 2 3 4 5 6 7 8 9 | reviews=c(7,18)
eta=c(0.9,0.9)
zeta=c(0.9,0.9)
p0=0.1
p1=0.3
prior.a=0
prior.b=0
bayes_binom_one_postprob_nstage(reviews,eta,zeta,p0,p1,prior.a,
prior.b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.