getStdRate: Calculate the standardized rate

Description Usage Arguments Author(s) Examples

View source: R/getStdRate.R

Description

A function to calculate the standard rate according to the Canadian standard population data set from year 1991.

Usage

1
getStdRate(relativeRate, model, referencePopulation, scale = 1e+05)

Arguments

relativeRate

the relative cancer rate calculated by glmmBUGS of different sex and age group of people from ontario .

model

Model to standardize to, either glm model output or a vector of rates by age and sex group

referencePopulation

population to standardize to

scale

compute the expected rate per ‘scale’ number of people.

Author(s)

Lutong Zhou

Examples

1
2
3
4
5
6
7
8
9
data(kentucky)

kentucky2 = getSMR(kentucky, larynxRates, larynx, 
		regionCode="County")

data(referencepop)
newpop <- getStdRate(kentucky2$SMR, larynxRates, referencepop, scale=100000)

newpop[1:10]

Example output

 [1] 16.536469  0.000000 12.286993  0.000000  9.382331  6.598796  0.000000
 [8]  2.553724  3.855306  5.886653

diseasemapping documentation built on Sept. 10, 2021, 9:06 a.m.