EconPapers    
Economics at your fingertips  
 

Properly calculating estat phtest in the presence of stratified hazards

Shawna K. Metzger () and Benjamin T. Jones ()
Additional contact information
Shawna K. Metzger: Michigan State University
Benjamin T. Jones: University of Mississippi

Stata Journal, 2021, vol. 21, issue 4, 1028-1033

Abstract: The Schoenfeld residual-based test for proportional-hazards violations in the Cox duration model is predicated on a key assumption pertaining to ho- moskedasticity in the residuals. This assumption is likely to be violated in the pres- ence of stratified hazards, which is noted in estat phtest’s help file. 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 stratph command’s workings.

Keywords: stratph; estat phtest; proportional hazards; Cox model; stratified hazards; heteroskedasticity (search for similar items in EconPapers)
Date: 2021
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj21-4/st0661/
References: Add references at CitEc
Citations:

Downloads: (external link)
http://www.stata-journal.com/article.html?article=st0661 link to article purchase

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:tsj:stataj:v:21:y:2021:i:4:p:1028-1033

Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html

DOI: 10.1177/1536867X211063408

Access Statistics for this article

Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins

More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().

 
Page updated 2025-03-20
Handle: RePEc:tsj:stataj:v:21:y:2021:i:4:p:1028-1033