ARmethod {BayesianPlatformDesignTimeTrend} | R Documentation |

This function adjusts the posterior randomisation probability for each arm using many approaches. Currently Thall's approach and Trippa's approach are used. Double biased coin and other method will be added in the next version.

```
ARmethod(
Fixratio,
BARmethod,
group,
stats,
post.prob.btcontrol,
K,
n,
tuningparameter,
c,
post.prob.best,
max.ar,
armleft,
treatmentindex
)
```

`Fixratio` |
A indicator TRUE/FALSE |

`BARmethod` |
The indicator of which adaptive randomisation method is used |

`group` |
The current stage |

`stats` |
The output matrix |

`post.prob.btcontrol` |
The vector of posterior probability of each active treatment arm better than control |

`K` |
Total number of arms at the beginning |

`n` |
The vector of sample size for each arm |

`tuningparameter` |
The tuning parameter indicator for Thall's approach |

`c` |
The tuning parameter for Thall's approach |

`post.prob.best` |
Posterior probability of each arm to be the best |

`max.ar` |
The upper boundary for randomisation ratio for each arm |

`armleft` |
The number of treatment left in the platform (>2) |

`treatmentindex` |
The vector of treatment arm index excluding the control arm whose index is 0 |

randomprob: The vector of adjusted randomisation probability to each arm

Ziyan Wang

Bayesian adaptive randomized trial design for patients with recurrent glioblastoma. Trippa, Lorenzo, Eudocia Q. Lee, Patrick Y. Wen, Tracy T. Batchelor, Timothy Cloughesy, Giovanni Parmigiani, and Brian M. Alexander. Journal of Clinical Oncology 30, no. 26 (2012): 3258. A simulation study of outcome adaptive randomization in multi-arm clinical trials. Wathen, J. Kyle, and Peter F. Thall. Clinical Trials 14, no. 5 (2017): 432-440.

```
ARmethod(Fixratio = FALSE,
BARmethod = "Thall",
group = 1,
stats = matrix(rep(NA, 40), ncol = 8, nrow = 5),
post.prob.btcontrol = 0.5,
K = 2,
n = c(30, 30),
tuningparameter = "fixed",
c = 1,
post.prob.best = c(0.5, 0.5),
max.ar = 0.75,
armleft = 2,
treatmentindex = 1)
```

[Package *BayesianPlatformDesignTimeTrend* version 1.1.3 Index]