calc_posterior | R Documentation |

Function which calculates for k=1, ..., K, Pr(log-HR >= lhr_null | theta.hat.k = lhr_con.k) i.e. the posterior probability the true OS log-hr exceeds the minimum unacceptable OS log-HR given the estimate of the log-hr at analysis k equals lhr_con.k (i.e. the estimate is equal to the stage k 'continuation threshold').

```
calc_posterior(lhr_con, lhr_null, events)
```

`lhr_con` |
vector of length K (# number of looks at OS data) containing 'continuation' thresholds on log-HR scale |

`lhr_null` |
scalar - minumum unacceptable OS log-HR |

`events` |
vector length K - number of OS events at each look at the data |

vector of length K - continuation thresholds expressed on posterior probability scale

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.