crit_general {BDP2} | R Documentation |

## Calculates CritBoundaries for different types of futility criteria

### Description

Calculates CritBoundaries for different types of futility criteria

### Usage

```
crit_general(n, p0, p1, vn.int, alpha, crit, type=5, shape1 = 1, shape2 = 1)
```

### Arguments

`n` |
sample size at the final analysis |

`p0` |
success rate corresponding to H0 |

`p1` |
success rate corresponding to H1 (p1 > p0) |

`vn.int` |
vector of sample sizes at the interim analyses (the vector may be equal to 1:(n-1) = continuous monitoring of futility) |

`alpha` |
nominal probability of type 1 error used for the final test |

`crit` |
critical level(s) of predictive/conditional power, (posterior) probabilities, rates, or patient numbers used for early termination. crit translates into futility boundaries (maximum number of successes leading to early termination). If simple rates are used for monitoring futility (type=7), crit is the critical success rate. Rates or probabilites must be input as percentages. In case of type 10 analyses, crit must be a vector of numbers of successes indicating futility bounds at each (interim or final)analysis. |

`type` |
see |

`shape1` |
for prior distribution |

`shape2` |
for prior distribution |

*BDP2*version 0.1.3 Index]