esd: Event vs years Since Diagnosis

Description Usage Arguments Value Note Author(s) See Also

View source: R/esd.R

Description

Computes relative risks (RR) of second cancers over specified years-since-diagnosis intervals. SEER incidence rates are used to compute background/expected numbers of cases E, sex, age, and calendar year specifically. RR = O/E where O and E are the numbers of observed and expected cases.

Usage

1
esd(d,srfF,srfM,brkst=c(0,2,5),brksy=NULL) 

Arguments

d

Input data.frame with columns: yrdx, agedx, sex, py at risk (in years), cancer1, and cancer2. Cancer1 and cancer2 should use standard SEERaBomb cancer names, see mapCancs. Cases not ending in a second cancer should have cancer2 set to "none".

srfF

Female incidence surface. Output D of mk2D for females, for cancers in cancer2

srfM

Male incidence surface. Output D of mk2D for males, for cancers in cancer2

brkst

Vector of breaks in years used to form times since diagnosis intervals/bins.

brksy

Vector of breaks of calendar years to show trends. Leave NULL for all in one.

Value

data.frame with observed and expected cases, RR, and RR CI for each time since diagnosis interval.

Note

This function was developed with support from the Cleveland Clinic Foundation.

Author(s)

Tom Radivoyevitch (radivot@ccf.org)

See Also

SEERaBomb-package, mk2D,msd


SEERaBomb documentation built on Dec. 16, 2019, 1:21 a.m.