Description Usage Arguments Value Examples

View source: R/risk_based_functions.R

Calculates risk-based population sensitivity with a single risk factor, using binomial method (assumes a large population), allows for unit sensitivity to vary among risk strata

1 | ```
sep.rb.bin(pstar, rr, ppr, n, se)
``` |

`pstar` |
design prevalence (scalar) |

`rr` |
relative risk values (vector of values corresponding to the number of risk strata) |

`ppr` |
population proportions corresponding to rr values (vector of equal length to rr) |

`n` |
sample size per risk category (vector same length as rr and ppr) |

`se` |
unit sensitivity, can vary among risk strata (fixed value or vector same length as rr, ppr, n) |

list of 3 elements, a scalar of population-level sensitivity a vector of EPI values and a vector of corresponding adjusted risks

1 2 3 4 5 | ```
# examples for sep.rb.bin
sep.rb.bin(0.1, c(5, 3, 1), c(0.1, 0.1, 0.8), c(5, 5, 5), 0.9)
sep.rb.bin(0.1, c(5, 1), c(0.1, 0.9), c(10, 5), c(0.95, 0.9))
sep.rb.bin(0.1, c(5, 1), c(0.1, 0.9), c(10, 5), c(0.9, 0.9))
sep.rb.bin(0.01, c(5, 1), c(0.1, 0.9), c(90, 50), c(0.9, 0.9))
``` |

RSurveillance documentation built on May 29, 2017, 11:52 p.m.

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.