Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.04 KB

README.md

File metadata and controls

26 lines (20 loc) · 1.04 KB

stphcoxrcs

A Stata user-written command to check the proportional-hazards assumption after a Cox model using restricted cubic splines

Version 1.6 (2015-06-17)


Description

stphcoxrcs checks the proportional-hazards assumption for one covariate of interest (binary or continuous) after fitting a model with stcox. In particular, stphcoxrcs models the natural logarithm of analysis time using restricted cubic splines transformations, which are interacted with the covariate specified in varname. A joint Wald (default) or likelihood ratio test of all the interaction terms is carried out to test the proportional-hazards assumption. Lastly, stphcoxrcs produces a graph of the time-varying hazard ratio.

Installation

To install the last version of stphcoxrcs from GitHub, type

net install stphcoxrcs, from("https://raw.githubusercontent.com/anddis/stphcoxrcs/master/")

from within a web-aware Stata.

Authors

Andrea Discacciati, Viktor Oskarsson, and Nicola Orsini

Karolinska Institutet, Sweden