Skip to content

Introduction¤

PyDTS currently includes two estimation procedures:

  1. TwoStagesFitter - a python implementation of our estimation method [1].

  2. DataExpansionFitter - a python implementation of the estimation method of Lee et al. (2018) [2].

The following example demonstrates the required data preparation steps, and applies our estimation procedure (Meir et. al., 2022) and that of Lee et al. (2018). As expected, both methods perform similarly in terms of point estimation and standard errors, while that of Meir et al (2022) is much faster.

The following sections includes:

  1. Data Preparation
  2. Estimating with TwoStagesFitter
  3. TwoStagesFitter Prediction
  4. Estimating with DataExpansionFitter
  5. DataExpansionFitter Prediction

For details about the estimation methods, please see Methods section.

For a detailed comparison between the two estimation techniques, based on as simulation study, see Meir et al. (2022).

from IPython.display import Image
Image(filename='models_params.png') 

References¤

[1] Meir, Tomer*, Gutman, Rom*, and Gorfine, Malka, "PyDTS: A Python Package for Discrete-Time Survival Analysis with Competing Risks" (2022)

[2] Lee, Minjung and Feuer, Eric J. and Fine, Jason P., "On the analysis of discrete time competing risks data", Biometrics (2018) doi: 10.1111/biom.12881