[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: comparing regression models
Dear Statalist members,
In a Cox regression, I'm comparing the magnitude of influence of each 
predictor variable (a, b, c, and d) on the effect size, hazard ratio 
y. I will run successive iterations of the model, each with one 
variable dropped. So:
stcox y a b c d	/*model: full */
stcox y b c d	/*model: drop a */
stcox y a c d	/*model: drop b */
stcox y a b d	/*model: drop c */
stcox y a b c 	/*model: drop d */
I will then sort and plot the hazard ratios in ascending order.
My question:
Is there a way to store the HR & model name in an external dataset 
for plotting, or is it best to do this manually?
Thank you.
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/