Description
Competing Risk in Dependent Net Survival Analysis.
Description
Provides statistical tools for analyzing net and relative survival, with a key feature of relaxing the assumption of independent censoring and incorporating the effect of dependent competing risks. It employs a copula-based methodology, specifically the Archimedean copula, to simulate data, conduct survival analysis, and offer comparisons with other methods. This approach is detailed in the work of Adatorwovor et al. (2022) <doi:10.1515/ijb-2021-0016>.
README.md
dMrs
Table of Contents
Installation
To install the package, run the following code for required dependencies and package.
all_packs = as.character(installed.packages()[,1])
req_packs = c("devtools","Rcpp","RcppArmadillo",
"Rmpfr","copula","ggplot2","viridis","smarter","dMrs")
run = 0
for(pack in req_packs){
if( pack %in% all_packs ){
library(pack,character.only = TRUE)
next
}
if( pack == "smarter" ){
devtools::install_github("pllittle/smarter")
} else if( pack == "dMrs" ){
devtools::install_github("reubenadat/dMrs")
} else {
install.packages(pack)
}
run = 1
}
if( run == 1 ) stop("Re-run this code")
Check out the vignette!
vignette("dMrs")
Package Features
The package's main functions include
- Simulation: Varying underlying shape, scale, dependency parameters.
- Optimization: Grid search and BFGS
- Predicting survival
- Matching working dataset subjects with reference dataset on age, sex, time period.
Citation
Not done yet.