Hi,
I am running a panel survival model and I want the estimates reported as hazard ratios.
This is not a problem for the tables displayed in the Stata output window, but I don't find a way to access the matrix of estimated hazard ratios.
I can access only the estimated coeffcients via matrix list - but this is not what I want. How can I do this?
I simply estimate something like this:
xtstreg D_gdp i.time, distribution(exponential) vce(robust)
What I see in Stata is:

And exactly the 1.030946 is what I want.
But what I get is:

The coeffcient 0.3047728 would come out if I estimate
xtstreg D_gdp i.time, distribution(exponential) vce(robust) nohr
How can I extract the hazard ratio?
I also tried
parmby "xtstreg D_gdp i.time, distribution(exponential) vce(robust)", saving(results.dta)
But it also only gave the coeffcients and not the hazard ratios.
What can I do? Thank you so much already for your help!
Fabian
I am running a panel survival model and I want the estimates reported as hazard ratios.
This is not a problem for the tables displayed in the Stata output window, but I don't find a way to access the matrix of estimated hazard ratios.
I can access only the estimated coeffcients via matrix list - but this is not what I want. How can I do this?
I simply estimate something like this:
xtstreg D_gdp i.time, distribution(exponential) vce(robust)
What I see in Stata is:
And exactly the 1.030946 is what I want.
But what I get is:
The coeffcient 0.3047728 would come out if I estimate
xtstreg D_gdp i.time, distribution(exponential) vce(robust) nohr
How can I extract the hazard ratio?
I also tried
parmby "xtstreg D_gdp i.time, distribution(exponential) vce(robust)", saving(results.dta)
But it also only gave the coeffcients and not the hazard ratios.
What can I do? Thank you so much already for your help!
Fabian
Comment