pgreater_beta {RARtrials} | R Documentation |
Calculate the Futility Stopping Probability for Binary Endpoint with Beta Distribution
Description
Calculate the futility stopping probability in Bayesian response-adaptive randomization with
a control group using the Thall \&
Wathen method for binary outcomes. The conjugate prior distributions follow
Beta (Beta(\alpha,\beta)
) distributions and can be specified individually for each treatment group.
Usage
pgreater_beta(a1, b1, a2, b2, delta, side, ...)
Arguments
a1 , b1 |
|
a2 , b2 |
|
delta |
expected difference in success probabilities between the control group and the treatment group. |
side |
direction of a one-sided test, with values 'upper' or 'lower'. |
... |
additional arguments to be passed to stats::integrate() (such as rel.tol) from this function. |
Details
This function calculates the results of Pr(p_k>p_{control}+\delta|data)
for side
equals to
'upper' and the results of Pr(p_{control}>p_k+\delta|data)
for side
equals to 'lower'.
The result indicates the posterior probability of stopping a treatment group due to futility around 1\%
in Bayesian
response-adaptive randomization with a control arm using Thall \&
Wathen method, with accumulated results
during the conduct of trials.
Value
a posterior probability of Pr(p_k>p_{control}+\delta|data)
with side
equals to 'upper';
a posterior probability of Pr(p_{control}>p_k+\delta|data)
with side
equals to 'lower'.
References
Wathen J, Thall P (2017). “A simulation study of outcome adaptive randomization in multi-arm clinical trials.” Clinical Trials, 14, 174077451769230. doi:10.1177/1740774517692302.
Examples
pgreater_beta(a1=8, b1=10,a2=5, b2=19, delta=0.1, side='upper')
pgreater_beta(a1=65, b1=79,a2=58, b2=68, delta=0, side='lower')