Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: metan: reversing the Events columns to the right of the forest plot


From   Michael McCulloch <[email protected]>
To   [email protected]
Subject   Re: st: metan: reversing the Events columns to the right of the forest plot
Date   Mon, 1 Nov 2010 09:04:04 -0700

Thank you Roger, I tried using the -rcols()- option, which adds additional columns to (but doesn't replace or verse the order of) the Events columns for the treatment and control groups. Using the example below, what I would like to achieve is to have the Events column for the treatment group appear on the right side of the Events column for the control group (right now it is on the left side):

*********  begin example*************
clear
input id kpTxFail kpTxResp   n_tx   kpCtFail   kpCtResp   n_ct  
    1         13         43     56         23         19     42  
    2          5         30     35         12         20     32  
    3          8         40     48         16         19     35  
    4          3         40     43         17         13     40  
    5          6         21     27         12         16     28  
    6          1         52     53         11         39     50  
    7          8         25     33         14         11     25  
    8          7         24     31         14         16     30  
    9          5         42     47         14         32     46  
   10          4         24     28         11         11     22  
end
list
metan kpTxResp kpTxFail kpCtResp kpCtFail, ///
	random xlab(.5,1,2) counts label(namevar=id) ///
	t1title(Improved or Stable Performance Score) 
list id kpTxFail kpTxResp n_tx kpCtFail kpCtResp n_ct 
********* end example*************


On Nov 1, 2010, at 12:37 AM, Roger Harbord wrote:

> On 29 October 2010 18:43, Michael McCulloch <[email protected]> wrote:
>> Hello,
>> With -metan-, is it possible to reverse the Treatment and Control groups' Events columns, which appear to the right of the forest plot?
> 
> Try using the "rcols()" option. This allows you to set the columns to
> contain whatever variables you want, in the order you specify.
> 
> Roger.
> 
> -- 
> Roger Harbord
> http://www.epi.bris.ac.uk/staff/rharbord.htm
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/


Best wishes,

Michael McCulloch, LAc MPH PhD
Pine Street Foundation
124 Pine Street
San Anselmo, CA 94960-2674
tel:	415-407-1357
fax: 	206-338-2391


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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index