getStdRate | R Documentation |
A function to calculate the standard rate according to the Canadian standard population data set from year 1991.
getStdRate(relativeRate, model, referencePopulation, scale = 1e+05)
relativeRate |
the relative cancer rate calculated by glmmBUGS of different sex and age group of people from ontario . |
model |
Model to standardize to, either |
referencePopulation |
population to standardize to |
scale |
compute the expected rate per ‘scale’ number of people. |
numeric value, incidence rate in reference population.
Lutong Zhou
data(kentucky)
kentucky = terra::unwrap(kentucky)
kentucky2 = getSMR(kentucky, larynxRates, larynx,
regionCode="County")
data(referencepop)
newpop <- getStdRate(kentucky2$SMR, larynxRates, referencepop, scale=100000)
newpop[1:10]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.