Description Usage Arguments Value Examples
View source: R/risk_based_functions.R
Calculates risk-based population sensitivity for two risk factors, using hypergeometric approximation method (assumes a known population size)
1 | sep.rb2.hypergeo(pstar, rr1, rr2, N, n, se)
|
pstar |
design prevalence (scalar) |
rr1 |
relative risks for first level risk factor (vector of values corresponding to the number of risk strata) |
rr2 |
relative risks for second level risk factor, matrix, rows = levels of rr1, cols = levels of rr2 |
N |
matrix of population size for each risk group (rows = levels of rr1, cols = levels of rr2) |
n |
matrix of number tested (sample size) for each risk group (rows = levels of rr1, cols = levels of rr2) |
se |
test unit sensitivity (scalar) |
list of 6 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, a vector of population proportions for the first risk factor and a matrix of population proportions for the second risk factor
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.