Description Usage Arguments Value Examples
View source: R/risk_based_functions.R
Calculates risk-based population sensitivity for two risk factors, using binomial method (assumes a large population)
1 | sep.rb2.binom(pstar, rr1, ppr1, rr2, ppr2, n, se)
|
pstar |
design prevalence (scalar) |
rr1 |
relative risks for first level risk factor (vector of values corresponding to the number of risk strata) |
ppr1 |
population proportions for first level risk factor (vector of same length as rr1) |
rr2 |
relative risks for second level risk factor, matrix, rows = levels of rr1, cols = levels of rr2 |
ppr2 |
population proportions for second level risk factor, matrix, rows = levels of rr1, cols = levels of rr2 |
n |
matrix of number tested for each risk group (rows = levels of rr1, cols = levels of rr2) |
se |
test unit sensitivity (scalar) |
list of 4 elements, a scalar of population-level sensitivity a matrix of EPI values, a vector of corresponding Adjusted risks for the first risk factor and a matrix of adjusted risks for the second risk factor
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.