# Helper Functions for Second Primary Cancer Analyses

## Documentation for package ‘msSPChelpR’ version 0.9.1

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

## 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
calc_refrates | Calculate age-, sex-, cohort-, region-specific incidence rates from a cohort
histgroup_iarc | Create variable for groups of malignant neoplasms considered to be histologically 'different' for the purpose of defining multiple tumors, ICD-O-3
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 | 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
population_us | US Populations Data
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
sir_byfutime | Calculate standardized incidence ratios with custom grouping variables stratified by follow-up time
sir_ratio | Calculate Ratio of two SIRs or SMRs
sir_ratio_lci | Calculate Ratio of two SIRs or SMRs
sir_ratio_uci | Calculate Ratio of two SIRs or SMRs
standard_population | Standard Populations Data
summarize_sir_results | Summarize detailed SIR results
us_refrates_icd2 | US Reference Rates for Cancer Data (ICD-O 2digit code)
us_second_cancer | US Second Cancer Data
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