Skip to main content

11. Survival, Event History and Competing-Risks Analysis

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Chapter 11. Survival, Event History and Competing-Risks Analysis provides step-by-step How-To implementation guides for 11 econometric model lessons organized across 4 methodological parts from Section 11.1.1 to 11.4.5. Every guide is synchronized with the full academic lecture at VietLOD Chapter 11 and supports automated cloud execution on EcoLab.

Video Tutorial: How-To Guide for Chapter 11: Survival, Event History and Competing-Risks Analysis in Stata 18, R 4.x, and Python 3.11+

11.1. Central Research Question and Core Mathematical Specification​

  • Central Research Question: How to model duration until an economic or financial event under right censoring, time-varying covariates, unobserved frailty, and competing exit risks?
  • Chapter Architecture: Encompasses 4 specialized methodological parts from 11.1 to 11.4 and 11 empirical model lessons validated on Vietnamese datasets from EcoData and Finco.

Core structural equation for Chapter 11:

h(t∣Xi)=h0(t)exp⁡(Xi⊤β),S(t∣Xi)=exp⁡(−∫0th(u∣Xi) du)h(t \mid X_i) = h_0(t)\exp(X_i^\top \beta), \quad S(t \mid X_i) = \exp\left(-\int_0^t h(u \mid X_i)\,du\right)
Methodological Scope Boundary:Applying OLS or standard binary Logit to time-to-event data ignores right-censoring duration and biases hazard rate estimates. Mandatory diagnostics for this chapter include: Log-Rank & Wilcoxon Test, Grambsch–Therneau Schoenfeld Proportional Hazards Test, Cox–Snell Residuals, Gray's CIF Equality Test.

11.2. Explore the 4 Methodological Parts in Chapter 11​

2 Lessons
11.1. Nonparametric Survival Analysis

Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Nonparametric Survival Analysis estimators.

Explore Guide
2 Lessons
11.2. Semiparametric Cox Proportional Hazards Models

Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Semiparametric Cox Proportional Hazards Models estimators.

Explore Guide
2 Lessons
11.3. Parametric Accelerated Failure Time Models

Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Parametric Accelerated Failure Time Models estimators.

Explore Guide
5 Lessons
11.4. Discrete-Time Hazard and Competing-Risks Models

Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Discrete-Time Hazard and Competing-Risks Models estimators.

Explore Guide

11.3. Four-Step Workflow for Selecting and Executing Models in Chapter 11​

Step 1. Select the Appropriate Methodological Part From 11.1 to 11.4

Match your economic hypothesis and sample structure against the identification requirements in Chapter 11 to select the appropriate A.B.C model lesson.

Step 2. Prepare Standardized Datasets From EcoData or Finco

Download the standardized .csv practice file for your target estimator from /src/ecoaz/data/ or extract live empirical series from EcoData and Finco.

Step 3. Estimate Parameters and Run Diagnostics in Stata 18, R 4.x, and Python 3.11+

Execute the tri-engine scripts provided in each model guide and verify the mandatory post-estimation diagnostics: Log-Rank & Wilcoxon Test, Grambsch–Therneau Schoenfeld Proportional Hazards Test, Cox–Snell Residuals, Gray's CIF Equality Test.

Step 4. Verify Three-Software Convergence and Export Publication Tables on EcoLab

Confirm numerical convergence across Stata, R, and Python using the three-panel empirical figure and generate journal-grade tables on EcoLab.

11.4. Complete Directory of 11 Econometric Model Lessons in Chapter 11​

SectionEconometric Model Lesson TitleEstimator KeyLevelSoftware Packages Stata · R · PythonSupport
11.1.111.1.1. Kaplan-Meier Nonparametric Survival Curvekaplan_meierL1base Stata · survival · lifelinesAvailable
11.1.211.1.2. Nelson-Aalen Cumulative Hazard Estimatornelson_aalenL2base Stata · survival · lifelinesAvailable
11.2.111.2.1. Cox Proportional Hazards Regressioncox_phL1base Stata · survival · lifelinesAvailable
11.2.211.2.2. Time-Varying Covariate Cox Hazardscox_time_varyingL3base Stata · survival · lifelinesAvailable
11.3.111.3.1. Weibull Accelerated Failure Time — AFTweibull_aftL2base Stata · survival · lifelinesAvailable
11.3.211.3.2. Log-Normal Accelerated Failure Time — AFTlognormal_aftL2base Stata · survival · lifelinesAvailable
11.4.111.4.1. Prentice-Gloeckler Discrete-Time Complementary Log-Log Hazarddiscrete_time_hazardL4base Stata cloglog · discSurv / stats · statsmodelsAvailable
11.4.211.4.2. Fine and Gray Competing-Risks Subdistribution Hazardfine_gray_competing_risksL4base Stata stcrreg · cmprsk · lifelinesAvailable

| 11.4.3 | 11.4.3. Autoregressive Conditional Duration Model Engle Russell | acd_conditional_duration | L4 | streg · ACDm · statsmodels | Available | | 11.4.4 | 11.4.4. Shared Gamma Frailty Proportional Hazards and AFT Duration Model | shared_gamma_frailty_hazard | L4 | stset · survival · scipy | Available | | 11.4.5 | 11.4.5. Piecewise Constant Exponential Hazard Duration Model | piecewise_exponential_hazard | L4 | stset · eha · statsmodels | Available |

11.5. Key Academic References​

  • Kaplan, E. L, & Meier, P.(1958). Nonparametric estimation from incomplete observations. Journal of the American Statistical Association, 53, số 282, 457–481.
  • Cox(1972). Econometric specification, identification, and asymptotic inference.
  • Fine, & Gray(1999). Econometric specification, identification, and asymptotic inference.
  • Prentice, R. L, & Gloeckler, L. A.(1978). Regression analysis of grouped survival data with application to breast cancer data. Biometrics, 34, số 1, 57–67.
  • Jenkins(1995). Econometric specification, identification, and asymptotic inference.
  • Cameron, A. C, & Trivedi, P. K.(2022). Microeconometrics Using Stata, 2nd ed, Vol. 2, Chương 22: Duration and Survival Data Models. Stata Press.
  • Wooldridge, J. M.(2010). Econometric Analysis of Cross Section and Panel Data, 2nd ed, Chương 20: Duration Analysis. MIT Press.
  • Rabe-Hesketh, S, & Skrondal, A.(2022). Multilevel and Longitudinal Modeling Using Stata, 4th ed, Vol. 2, Chương 14–15: Survival and Discrete-Time Event History. Stata Press.
  • Chen, D.-G, & Peace, K. E.(2021). Applied Meta-Analysis with R and Stata, 2nd ed, Chương 9: Survival Time-to-Event Data. Chapman and Hall/CRC.