resultstantoRfunc {BayesianPlatformDesignTimeTrend} | R Documentation |

This function summarise the fix effect stan output data to and transform them to be readable.

```
resultstantoRfunc(
group,
reg.inf,
variable.inf,
fit,
armleft,
treatmentindex,
K,
ns
)
```

`group` |
The current stage |

`reg.inf` |
The information of how much accumulated information will be used |

`variable.inf` |
The information of whether to use random effect model or fix effect model. |

`fit` |
The stan output |

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

`treatmentindex` |
A vector of treatment index at the beginning of a trial |

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

`ns` |
A vector of accumulated number of patient at each stage |

A list of stan result inference stats1: A vector of posterior probability for all treatment arms including dropped and active treatment arm stats4: The mean treatment effect estimate of each treatment compared to control stats5: The variance of treatment effect estimate of each treatment compared to control post.prob.btcontrol: a vector including Posterior probability of each active treatment arm better than control stats6: A vector of mean stage (time trend) effect estimate stats7: A vector of mean treatment - stage (time trend) interaction effect estimate sampefftotal: The posterior samples of response probability of each active arm on logit scale. This can be transformed to probit scale by using inv.logit() function.

Ziyan Wang

```
## Not run: resultstantoRfunc(group, reg.inf, fit, armleft, treatmentindex, K, ns)
```

[Package *BayesianPlatformDesignTimeTrend* version 1.1.3 Index]