Description Usage Arguments Value Examples
Calculate risk difference and 95 percent confidence interval using Wald method.
1 2 3 4 |
df |
a dataframe with binary variables x and y. |
x |
binary predictor/exposure, vector. |
y |
binary outcome, vector. |
weight |
an optional vector of count weights. |
conf.level |
confidence level for confidence interval, default is 0.95. |
rev |
reverse order of cells. Options are "row", "columns", "both", and "neither" (default). |
... |
further arguments passed to or from other methods. |
a list with class "rdiff" containing the following components:
rd |
risk difference |
conf.level |
specified confidence level |
ci |
calculated confidence interval |
p1 |
proportion one |
p2 |
proportion two |
tab |
2x2 table using for calculating risk difference |
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.