Learn R Programming

msSPChelpR

What is msSPChelpR?

This package is a collection of helper functions for analyzing Second Primary Cancer (SPC) data, including functions to reshape data, to calculate patient states and analyze cancer incidence.

Installation

You can install the released version of msSPChelpR from CRAN with:

install.packages("msSPChelpR")

And the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("marianschmidt/msSPChelpR")

How to use the package

An introductory vignette on the workflow of the package can be found here. See vignette("introduction").

Citation

In case you want to cite this package, please use citation('msSPChelpR') for reference information.

Copy Link

Version

Install

install.packages('msSPChelpR')

Monthly Downloads

229

Version

0.9.1

License

GPL-3

Maintainer

Marian Eberl

Last Published

January 23rd, 2024

Functions in msSPChelpR (0.9.1)

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)
reshape_long_tt

Reshape dataset to wide format - tidytable version
reshape_long_tidyr

Reshape dataset to wide format - tidyr version
renumber_time_id_tt

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

Reshape dataset to wide format
reshape_wide_tidyr

Reshape dataset to wide format - tidyr version
reshape_long

Reshape dataset to long format - stats::reshape version
%>%

Pipe operator
sir_ratio

Calculate Ratio of two SIRs or SMRs
summarize_sir_results

Summarize detailed SIR results
vital_status_tt

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

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

Standard Populations Data
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
vital_status

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

US Second Cancer Data
histgroup_iarc

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

Calculate age-standardized incidence rates
msSPChelpR-package

msSPChelpR: Helper Functions for Second Primary Cancer Analyses
ir_crosstab_byfutime

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

Calculate crude incidence rates and crosstabulate results by break variables
pat_status

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

Calculate age-, sex-, cohort-, region-specific incidence rates from a cohort
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
msSPChelpR

msSPChelpR