adjust_direct | R Documentation |
Calculate crude and directly adjusted rates
adjust_direct(count, pop, stdpop, per = 100000, conf.level = 0.95)
count |
Numeric vector of indeterminate length. The # of events of interest (e.g., deaths, births, etc.) |
pop |
Numeric vector of indeterminate length. The population denominator for the count. |
stdpop |
Numeric vector of indeterminate length. The reference standard population corresponding to the population. |
per |
Integer vector of length 1. A multiplier for all rates and CI, e.g., when per = 1000, the rates are per 1000 people |
conf.level |
A numeric vector of length 1. The confidence interval used in the calculations. |
a labeled numeric vector of the count, rate, and adjusted rate with the CI
adjust_direct(count = c(11, 9), pop = c(500, 500), stdpop = c(640, 720),
per = 100, conf.level = 0.95)[]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.