Skip to content
forked from anddis/stphcoxrcs

Stata command to check the PH assumption after a Cox model using RCS

Notifications You must be signed in to change notification settings

guhjy/stphcoxrcs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Stata command to check the PH assumption after a Cox model using RCS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Stata 99.3%
  • TeX 0.7%