| add_pr_columns | R Documentation |
Expects columns: prevalence_d1, prevalence_d2, denominator_d1, denominator_d2.
add_pr_columns(df)
df |
Data frame with prevalence and denominator columns. |
Formulas: log2_pr = log2(p2 / p1) SE(ln) = sqrt((1-p1)/(p1*n1) + (1-p2)/(p2*n2)) SE(log2)= SE(ln) / ln(2) CI = log2_pr +/- 1.96 x SE
Data frame with PR columns appended.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.