Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: Sort studies in forest plot according to direction of effect after metan


From   "MacLennan, Graeme" <g.maclennan@abdn.ac.uk>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Sort studies in forest plot according to direction of effect after metan
Date   Mon, 17 Dec 2012 07:53:38 +0000

Nick asked:
"Hi to all,

I was wondering if there is a way to sort study effects according to the direction  of the effect in a forest plot after implementing the metan command.
I could rearrange the order of the studies in the data editor as a last measure."

-metan- then sort on _ES and re-do it.  Example below using the dataset from the -metan- help file (read that for what -metan- stores as new variables), HTH, Graeme.

*** begin example ***
use http://fmwww.bc.edu/repec/bocode/m/metan_example_data, clear
metan  tdeath tnodeath cdeath cnodeath
sort _ES
metan  tdeath tnodeath cdeath cnodeath
*** end example ***




The University of Aberdeen is a charity registered in Scotland, No SC013683.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index