Description Usage Arguments Value Examples
Takes age-binned event rates per 100,000 and uses interpolation to estimate cumulative event-free survival for single years
1 2 | interpolate_cumsurv(binnedrates, ratevar, maxage = NULL,
country = NULL)
|
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 |
Data frame of cumulative survival probability by single-year ages
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.