Properly Calculating estat phtest in the Presence of Stratified Hazards
Stata Journal, 2021
The Schoenfeld residual-based test for proportional hazards violations in the Cox duration model is predicated on a key assumption pertaining to homoscedasticity in the residuals. This assumption is likely to be violated in the presence of stratified hazards, as estat phtest’s help file notes. We provide a wrapper command, stratph, that implements a straightforward modification to the residual-based diagnostic that corrects for the potential assumption violation. We use the stratified hazards example from the stcox help file to demonstrate the command’s workings.
@article{metzger_properly_2021,
title = {Properly {Calculating} estat phtest in the {Presence} of {Stratified} {Hazards}},
volume = {21},
doi = {10.1177/1536867X211063408},
number = {4},
journal = {Stata Journal},
author = {Metzger, Shawna K. and Jones, Benjamin T.},
year = {2021},
pages = {1028--1033},
}