# Helper Functions for Second Primary Cancer Analyses

## Documentation for package ‘msSPChelpR’ version 0.8.6

- DESCRIPTION file.
- User guides, package vignettes and other documentation.

## Help Pages

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
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
pat_status | Calculate patient status at specific end of follow-up - tidyverse version
pat_status_tt | Calculate patient status at specific end of follow-up - tidytable version
population_us | US Populations
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_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
sir_byfutime | Calculate standardized incidence ratios with custom grouping variables stratified by follow-up time
standard_population | Standard Populations
summarize_sir_results | Summarize detailed SIR results
us_refrates_icd2 | US Reference Rates for Cancer using ICD-O 2digit code for cancer site
us_second_cancer | US Second Cancer
vital_status | Calculate vital status at end of follow-up depending on pat_status - tidyverse version
vital_status_tt | Calculate vital status at end of follow-up depending on pat_status - tidytable version