Calculates the sample size required to achieve a given value for probability of disease freedom

1 |

`pfree` |
desired probability of freedom (scalar or vector) |

`prior` |
prior probability of freedom before surveillance (scalar or vector of same length as pfree) |

`p.intro` |
probability of introduction for time period (scalar or vector of same length as pfree) |

`pstar` |
design prevalence (scalar or vector of same length as pfree) |

`se` |
unit sensitivity (scalar or vector of same length as pfree) |

`N` |
population size (scalar or vector of same length as pfree) |

a list of 3 elements, the first a vector of sample sizes and the second a corresponding vector of population sensitivity values and the third a vector of adjusted priors

1 2 3 4 5 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.