Title: | 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>. |
Authors: | Reuben Adatorwovor [aut], Paul Little [cre] |
Maintainer: | Paul Little <[email protected]> |
License: | GPL (>= 3) |
Version: | 1.0.0 |
Built: | 2025-01-21 17:32:57 UTC |
Source: | CRAN |
Summarizes the solutions post-optimization
opt_sum(OPT)
opt_sum(OPT)
OPT |
Output list from |
A dataframe containing a summary of each successfully optimized configuration of copula and density with corresponding constrained maximum likelihood estimates, and Bayesian Information Criteria.
Plot net survival probabilities per model
plot_SURVs(run_ANA, MULTIPLE, ncol = 1, ALPHA = 0.5)
plot_SURVs(run_ANA, MULTIPLE, ncol = 1, ALPHA = 0.5)
run_ANA |
The object outputted from |
MULTIPLE |
A boolean set to |
ncol |
Integer number of columns of plots to display |
ALPHA |
A numeric value between 0 and 1 to control the confidence band transparency. |
Returns a ggplot object of survival predictions and
corresponding confidence intervals, Bayesian Information Criteria,
maximum likelihood estimates. The user may apply their own
customized graphic edits prior to visualizing the final graphic
with the print()
function.
This function takes as input a working dataset of interest and a reference dataset.
refData_match(wDAT, rDAT, ncores = 1)
refData_match(wDAT, rDAT, ncores = 1)
wDAT |
A working dataset data.frame containing
required columns |
rDAT |
A reference dataset data.frame containing
required columns |
ncores |
Integer number of parallel threads to decrease matching runtime. |
A dataframe containing calculated log-transformed density and log-transformed cumulative distribution
This function performs a full analysis of
an inputted dataframe. The user may specify one of two
copulas, a theta
value, a parametric grid to
search over, and a vector of times for predicting survival.
run_analyses( DATA, THETAs = NULL, upKAPPA, gTHRES = 0.1, COPULAS, param_grid, vec_time, ncores = 1, max_iter = 200, verb, PLOT )
run_analyses( DATA, THETAs = NULL, upKAPPA, gTHRES = 0.1, COPULAS, param_grid, vec_time, ncores = 1, max_iter = 200, verb, PLOT )
DATA |
A data.frame containing column names
|
THETAs |
A vector of theta values to explore and optimize over. |
upKAPPA |
An integer value taking values 0 or 1. If set to 1, the exponentiated Weibull distribution is assumed. Otherwise, the Weibull distribution is assumed and optimized over. If undefined, the optimization will search over both distributions. |
gTHRES |
A numeric threshold on the L2 norm of the gradient evaluated at the MLE. |
COPULAS |
If undefined, will optimize over all copulas. Otherwise set to 'Independent', 'Clayton' or 'Gumbel' |
param_grid |
Vector of values spanning possible log(alpha1), log(lambda1), log(kappa1), unconstrained theta parameters |
vec_time |
Vector of times in years to calculate predicted survival. |
ncores |
A positive integer for the number of threads to evaluate log-likelihoods across the parameter grid. |
max_iter |
Maximum Newton Raphson and Gradient Descent iterations to set. |
verb |
Boolean value to display verbose information or not |
PLOT |
A logical variable, set to |
Returns a parsable list of results per successfully optimized configuration of copula and density with accompanying net survival predictions, survival confidence intervals, maximum likelihood estimates, MLE confidence intervals (constrained and unconstrained), Bayesian Information Criteria for model selection, and extra statistical metrics to confirm convergence.