Hi Statalist

I am trying to export the proportional hazards statistics to a word document (that also contains my results table) after having performed a cox regression. I have tried the following:

estat phtest, detail
putdocx table ph = matrix(r(phtest))

This however produces a table with no table header and no variable names in the first column. Is there any way to add the table header and variable names (as shown in the results window) to the putdocx table?

Thanks in advance.

Best regards,
Amalie