[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:
input str6 method es lci uci
Cox .89 .86 .99
MSM 1.2 .95 1.5
Pscore .31 .22 .51
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.
Pine Street Clinic
124 Pine Street, San Anselmo, CA 94960-2674
* For searches and help try: