Learn R Programming

SEERaBomb (version 2016.1)

post1PYOm: Get person-years at risk and observed deaths after cancer

Description

Converts data.frame D into a list of objects containing information regarding person years at risk of death after cancer and the number of deaths observed, in a defined time since exposure interval.

Usage

post1PYOm(D,brks=c(0,2,5),binIndx=1,yearEnd)

Arguments

D
Input data.frame with columns: yrdx, agedx, surv, and status (1=dead).
brks
A vector of break points in years used to form time since diagnosis bins.
binIndx
The index of the interval for which py are to be computed by calling this function.
yearEnd
The most recent year of available mortality data.

Value

element is a vector of deaths observed in the intervals, and the third is a scalar, the py-weighted midpoint of the time intervals.

See Also

SEERaBomb-package, getE,post1PYO