| ![](/includes/contimages/spacer.gif) |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Cox regression: saving estimates
I am comparing many different models of a Cox regression in a graph.
WHAT I'VE DONE SO FAR:
Save each regression output using first "estimates store", then "estout".
Input these manually into a separate dataset, then graph, using:
clear
input str6 method es lci uci
Cox .89 .86 .99
MSM 1.2 .95 1.5
Pscore .31 .22 .51
end
l
encode method, gen(meth)
twoway rcap lci uci meth, horizontal msize(huge) ///
xtitle(Hazard Ratio and 95% Confidence Interval, margin(0 0 0 5)) ///
ytitle(Analysis Method) ylabel( 1 "Cox" 2 "MSM" 3 "Pscore" , angle(h)) ///
|| scatter meth es, msize(medlarge) legend(off)
PROBLEM FOR WHICH I'D LIKE SOME ADVICE:
I would like to save the effect size and their lower and upper confidence
limits in a separate dataset, along with a label for the method, so that I
can display them in a graph, so I don't need to enter them manually.
Best wishes,
Michael
____________________________________
Michael McCulloch
Pine Street Clinic
124 Pine Street, San Anselmo, CA 94960-2674
tel 415.407.1357
fax 415.485.1065
email: [email protected]
web: www.pinest.org
www.pinestreetfoundation.org
*
* 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/