Data Preparation

Functions for dataset preparation

histgroup_iarc()

Create variable for groups of malignant neoplasms considered to be histologically 'different' for the purpose of defining multiple tumors, ICD-O-3

pat_status()

Determine patient status at specific end of follow-up - tidyverse version

pat_status_tt()

Determine patient status at specific end of follow-up - tidytable version

renumber_time_id()

Renumber the time ID per case (i.e. Tumor sequence)

renumber_time_id_tt()

Renumber the time ID per case (i.e. Tumor sequence) - tidytable version

reshape_long()

Reshape dataset to long format - stats::reshape version

reshape_long_tidyr()

Reshape dataset to wide format - tidyr version

reshape_long_tt()

Reshape dataset to wide format - tidytable version

reshape_wide()

Reshape dataset to wide format

reshape_wide_tidyr()

Reshape dataset to wide format - tidyr version

reshape_wide_tt()

Reshape dataset to wide format - tidytable version

vital_status()

Determine vital status at end of follow-up depending on pat_status - tidyverse version

vital_status_tt()

Determine vital status at end of follow-up depending on pat_status - tidytable version

Calculations

Functions to do calculations

asir()

Calculate age-standardized incidence rates

calc_futime()

Calculate follow-up time per case until end of follow-up depending on pat_status - tidyverse version

calc_futime_tt()

Calculate follow-up time per case until end of follow-up depending on pat_status - tidytable version

calc_refrates()

Calculate age-, sex-, cohort-, region-specific incidence rates from a cohort

ir_crosstab()

Calculate crude incidence rates and crosstabulate results by break variables

ir_crosstab_byfutime()

Calculate crude incidence rates and cross-tabulate results by break variables; cumulative FU-times as are used as xbreak_var

sir_byfutime()

Calculate standardized incidence ratios with custom grouping variables stratified by follow-up time

sir_ratio() sir_ratio_lci() sir_ratio_uci()

Calculate Ratio of two SIRs or SMRs

Results presentation

Functions to present results

summarize_sir_results()

Summarize detailed SIR results

Data

Data sets used in examples

us_second_cancer

US Second Cancer Data

us_refrates_icd2

US Reference Rates for Cancer Data (ICD-O 2digit code)

population_us

US Populations Data

standard_population

Standard Populations Data