Dear all,
I am running several Cox PH survival models and use Schoenfeld residuals as a first layer of tests for the proportional-hazard assumption. In the tests, I am not only interested in the global test results, but would like to report all values of each individual variable. The Problem: As I am running at least one dozen tests for several models I would like to / will need to compile and export all tables in to *.tex files automaticially to stay efficient (just like in compling regression tables via -estout-, say). However, it seems like I can not access these values from Stata's storage (see -ereturn list- in the code below).
Question: Is there a solution to fetch all values reported in -estat phtest, detail- and compile / export then into a (neat) table, at best in .tex format?
Here a sample code and data set for my issue:
Thanks a lot for your help in advance,
Michael
I am running several Cox PH survival models and use Schoenfeld residuals as a first layer of tests for the proportional-hazard assumption. In the tests, I am not only interested in the global test results, but would like to report all values of each individual variable. The Problem: As I am running at least one dozen tests for several models I would like to / will need to compile and export all tables in to *.tex files automaticially to stay efficient (just like in compling regression tables via -estout-, say). However, it seems like I can not access these values from Stata's storage (see -ereturn list- in the code below).
Question: Is there a solution to fetch all values reported in -estat phtest, detail- and compile / export then into a (neat) table, at best in .tex format?
Here a sample code and data set for my issue:
Code:
version 14 webuse drugtr stcox drug age estat phtest, detail ereturn list // see for info // compile entire table to *.tex
Michael
Comment