Learn R Programming

⚠️There's a newer version (0.9.1) of this package.Take me there.

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("devtools")
devtools::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

272

Version

0.8.7

License

GPL-3

Maintainer

Marian Eberl

Last Published

July 1st, 2021

Functions in msSPChelpR (0.8.7)

pat_status_tt

Calculate patient status at specific end of follow-up - tidytable version
pat_status

Calculate patient status at specific end of follow-up - tidyverse version
ir_crosstab

Calculate crude incidence rates and crosstabulate results by break variables
data.table

Data.table helpers
calc_futime_tt

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

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

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

msSPChelpR
asir

Calculate age-standardized incidence rates
%>%

Pipe operator
renumber_time_id_tt

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

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

Reshape dataset to wide format - tidytable version
reshape_long

Reshape dataset to long format - stats::reshape version
renumber_time_id

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

Standard Populations Data
sir_ratio

Calculate Ratio of two SIRs or SMRs
population_us

US Populations Data
us_second_cancer

US Second Cancer Data
us_refrates_icd2

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

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

Reshape dataset to wide format - tidytable version
vital_status

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

Reshape dataset to wide format - tidyr version
reshape_wide

Reshape dataset to wide format
tidyeval

Tidy eval helpers
summarize_sir_results

Summarize detailed SIR results
reshape_wide_tidyr

Reshape dataset to wide format - tidyr version