Learn R Programming

cancerradarr (version 1.3.1)

indirect_standardized_incidence_ratio: Compute indirect standardized incidence ratio (sir)

Description

Compute indirect standardized incidence ratio (sir)

Usage

indirect_standardized_incidence_ratio(ncan, py, ncanref, pyref, ncan.min = 5)

Value

a 1 line and 3 column data.frame containing the sir (est) and associated 95% CI (lci, uci)

Arguments

ncan

integer, (age-specific) number of cancers in the population of interest

py

integer, (age-specific) person-year of the the population of interest

ncanref

integer, (age-specific) number of cancers in the reference population

pyref

integer, (age-specific) person-year of the the reference population

ncan.min

integer, minimum number of observation required not to mask the CI's out

Standardized incidence ratio (sir) and associated 95% confidence interval are computing assuming normal distribution of the pir on the log scale. sir is a summary statistics that should be computed per group of individuals providing age specific counts.

References

Boyle P, Parkin DM. Cancer registration: principles and methods. Statistical methods for registries. IARC Sci Publ. 1991;(95):126-58. PMID: 1894318.

Examples

Run this code
ncan <- 1:10
py <- 101:110
ncanref <- 41:50
pyref <- 251:260
ncan.min <- 5

indirect_standardized_incidence_ratio(ncan, py, ncanref, pyref, ncan.min)
indirect_standardized_incidence_ratio(ncan, py, ncanref, pyref, sum(ncan) + 1)

Run the code above in your browser using DataLab