Description Usage Arguments Value References See Also Examples

Calculate the type I error or power of a two-stage design

1 | ```
binom.power(r1,n1,r,n,p)
``` |

`r1` |
first stage threshold to stop the trial for futility. |

`n1` |
first stage sample size. |

`r` |
overall threshold to stop the trial for futility. |

`n` |
total sample size. |

`p` |
pre-specified response rate, |

`prob` |
the power function: |

Simon, R. (1989).
*Optimal two-stage designs for phase II clinical trials.*
*Controlled clinical trials* **10(1)**, 1-10.

binom.design

1 2 3 | ```
## Calculate type I error
binom.power(5, 31, 16, 76, 0.15)
binom.power(5, 31, 16, 76, 0.3)
``` |

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.