Estimates apparent prevalence and confidence limits for given sample size and result, assuming representative sampling

1 |

`x` |
number of positives in sample |

`n` |
sample size, note: either x or n can be a vector, but at least one must be scalar |

`type` |
method for estimating CI, one of c("normal", "exact", "wilson", "jeffreys", "agresti-coull", "all"), default = "wilson" |

`conf` |
level of confidence required, default = 0.95 (scalar) |

either 1) if type = "all", a list with 5 elements, each element a matrix with 6 columns, x, n, proportion, lower confidence limit, upper confidence limit, confidence level and CI method; or 2) a matrix of results for the chosen method

1 2 3 4 5 6 7 |

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.