# This runs test_one function for many replicates, usually 10,000, for example, to generate the type-2 error rate for one constituent study (not for end user).

### Description

This runs test_one function for many replicates, usually 10,000, for example, to generate the type-2 error rate for one constituent study (not for end user).

### Usage

1 2 | ```
test.n(r_events_control, n_sample_size_control,
n_sample_size_treated, OR_hat, n, alpha)
``` |

### Arguments

`r_events_control` |
Number of events in untreated |

`n_sample_size_control` |
Sample size in untreated group |

`n_sample_size_treated` |
Sample size in treated group |

`alpha` |
Type-1 error rate. |

`n` |
Number of iterations used to generate constituent study power; suggest use 10,000. |

`OR_hat` |
Summary odds ratio from meta-analysis |

### Value

Type-2 error for one constituent study

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.