Skip to main content

11.1. Nonparametric Survival Analysis

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 11.1. Nonparametric Survival Analysis in 11. Survival, Event History and Competing-Risks Analysis provides step-by-step How-To implementation guides for 2 econometric model lessons spanning from Section 11.1.1 to 11.1.2. Full theoretical derivations are available at VietLOD Part 11.1 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 11.1: Nonparametric Survival Analysis in Stata 18, R 4.x, and Python 3.11+

11.1.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Nonparametric Survival Analysis specifications within Survival, Event History and Competing-Risks Analysis.
  • Mandatory Post-Estimation Diagnostics: Công thức phương sai Greenwood cho dải tin cậy 95%95\% của đường cong sống sót, ước lượng thời gian sống sót trung vị và các kiểm định so sánh giữa các nhóm Log-Rank, Wilcoxon và Tarone–Ware.

Core structural specification for Part 11.1:

S^(t)=∏tj≤t(1−djnj)\hat{S}(t) = \prod_{t_j \le t} \left(1 - \frac{d_j}{n_j}\right)

Estimator objective and moment conditions:

ℓpartial(β)=∑i=1Nδi[Xi⊤β−ln⁡(∑j∈R(ti)exp⁡(Xj⊤β))],S(t∣Xi)=exp⁡(−H0(t)exp⁡(Xi⊤β))\ell_{\text{partial}}(\beta) = \sum_{i=1}^N \delta_i \left[X_i^\top \beta - \ln\left(\sum_{j \in \mathcal{R}(t_i)} \exp(X_j^\top \beta)\right)\right], \quad S(t \mid X_i) = \exp\left(-H_0(t)\exp(X_i^\top \beta)\right)
Methodological Scope Boundary:When empirical data violate the identification conditions of Part 11.1, researchers should transition to the extended methodological parts in Chapter 11 or apply appropriate instrumental-variable and cluster-robust corrections.

11.1.2. Econometric Model Lessons in Part 11.1​

11.1.3. Comparative Execution Syntax Across Stata 18, R 4.x, and Python 3.11+​

Section & Model TitleEstimator KeyStata 18 MP SyntaxR 4.x SyntaxPython 3.11+ SyntaxSupport
11.1.1 · Kaplan-Meier Nonparametric Survival Curvekaplan_meierstset duration, failure(event) -> sts list -> sts test groupsurvival::survfit(Surv(duration, event) ~ group, data = df)KaplanMeierFitter().fit(df['duration'], event_observed=df['event'])Available
11.1.2 · Nelson-Aalen Cumulative Hazard Estimatornelson_aalenstset duration, failure(event) -> sts list, nasurvival::survfit(Surv(duration, event) ~ 1, type = 'fh', data = df)NelsonAalenFitter().fit(df['duration'], event_observed=df['event'])Available

11.1.4. Standard Implementation Workflow for Part 11.1​

Step 1. Load Standardized Practice Datasets From VietLOD, EcoData, or Finco

Download the model-specific .csv practice dataset in Part 11.1 or extract custom empirical panels from EcoData and Finco.

Step 2. Select the Optimal Estimator for Your Error and Sample Structure

Compare the estimators from 11.1.1 to 11.1.2 in the syntax matrix above and execute the estimation in Stata 18 MP, R 4.x, or Python 3.11+.

Step 3. Run Mandatory Diagnostics and Export Publication Tables on EcoLab

Verify all required diagnostics including Công thức phương sai Greenwood cho dải tin cậy 95%95\% của đường cong sống sót, ước lượng thời gian sống sót trung vị và các kiểm định so sánh giữa các nhóm Log-Rank, Wilcoxon và Tarone–Ware and dispatch the specification to EcoLab for automated journal-grade reporting.