interpolate_cumsurv: Compute cumulative event-free survival curve for single-year...

Description Usage Arguments Value Examples

Description

Takes age-binned event rates per 100,000 and uses interpolation to estimate cumulative event-free survival for single years

Usage

1
2
interpolate_cumsurv(binnedrates, ratevar, maxage = NULL,
  country = NULL)

Arguments

binnedrates

Data frame with Age for age groups

ratevar

Name of rate variable

maxage

Maximum age desired. If data are incomplete, the rate for the oldest age will be held constant until maxage. Leave NULL to have the data determine the max age.

country

Country to select from the data frame

Value

Data frame of cumulative survival probability by single-year ages

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(incratesf)
data(allmortratesf)

# Example with breast cancer incidence
inc <- interpolate_cumsurv(incratesf, 
                         ratevar='Female.Rate.Per.100K',
                         country='Uganda')
# Example with all-cause mortality
mort <- interpolate_cumsurv(allmortratesf, 
                         ratevar='Rate.Per.100K',
                         country='Uganda')

cancerpolicy/bcimodel documentation built on June 30, 2019, 12:39 a.m.