Description Usage Arguments Value Examples

View source: R/freedom_functions_1.R

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 |

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.