View source: R/calc.bnd.surv.R

calc.bnd.surv | R Documentation |

Internal workhorse function to calculate stopping boundary for a given method for time-to-event data

```
calc.bnd.surv(n, p0, type, tau, cval, param = NULL)
```

`n` |
Maximum sample size for safety monitoring |

`p0` |
The probability of a toxicity occurring in |

`type` |
The method used for constructing the stopping rule |

`tau` |
Length of observation period |

`cval` |
Critical value for the stopping rule. For Wang-Tsiatis tests, this is the Delta parameter. For the Bayesian Gamma-Poisson method, this is the threshold on the posterior probability. For the truncated SPRT, this is the threshold on the log likelihood ratio. For the MaxSPRT, this is the threshold on the log generalized likelihood ratio. |

`param` |
A vector of the extra parameter(s) needed for certain stopping rule methods. For Wang-Tsiatis tests, this is the Delta parameter. For truncated SPRT, this is the targeted alternative toxicity probability p1. For Bayesian Gamma-Poisson model, this is the vector of hyperparameters (shape,rate) for the gamma prior on the toxicity event rate. |

A list of three items: tau, number of events that can trigger a stop, and the corresponding total follow up time.

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.