Estimating Survival Functions after Stcox with Time-varying Coefficients
- 1 December 2016
- journal article
- research article
- Published by SAGE Publications in The Stata Journal: Promoting communications on statistics and Stata
- Vol. 16 (4) , 867-879
Abstract
In many applications of the Cox model, the proportional-hazards assumption is implausible. In these cases, the solution to nonproportional hazards usually consists of modeling the effect of the variable of interest and its interaction effect with some function of time. Although Stata provides a command to implement this interaction in stcox, it does not allow the typical visualizations using stcurve if stcox was estimated with the tvc() option. In this article, I provide a short workaround that estimates the survival function after stcox with time-dependent coefficients. I introduce and describe the scurve_tvc command, which automates this procedure and allows users to easily visualize survival functions for models with time-varying effects.Keywords
This publication has 7 references indexed in Scilit:
- Tools for Checking Calibration of a Cox Model in External Validation: Approach Based on Individual Event ProbabilitiesThe Stata Journal: Promoting communications on statistics and Stata, 2014
- Proportional Hazards Modeling of Saccadic Response Times During ReadingTopics in Cognitive Science, 2013
- Simulating Complex Survival DataThe Stata Journal: Promoting communications on statistics and Stata, 2012
- Survival Analysis of Patients with Heart Failure: Implications of Time-Varying Regression Effects in Modeling MortalityPLOS ONE, 2012
- Long-term survival with non-proportional hazards: results from the Dutch Gastric Cancer TrialStatistics in Medicine, 2005
- Nonproportional Hazards and Event History Analysis in International RelationsJournal of Conflict Resolution, 2003
- The Statistical Analysis of Failure Time Data2002