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]

st: -metan-: apparent calculation error in the graphical output


From   Michael McCulloch <[email protected]>
To   Statalist Statalist <[email protected]>
Subject   st: -metan-: apparent calculation error in the graphical output
Date   Sun, 17 Oct 2010 12:56:05 -0700

Dear Statalist members,
Using the data below (which can be run as one do-file),
when the -metan- command is run as written in this example,  
an incorrect value appears in the graph for the -counts- data in only *one* of the cells: control group total in study#4.
Instead of the value “40” which was input for the control group total in study # 4, the value “30” appears in the graph. All other -counts- data are reported correctly.

Metan version: 		(SJ9-2: sbe24_3)
Stata version: 		Stata/IC 11.1 for Mac (64-bit Intel), Born 16 Jun 2010.
Machine: 			MacBook Pro, 2.16 HGz Intel Core 2 Duo, 2 GB 667 MHz DDR2 SDRAM memory
Operating system: 	OS X 10.6.4

I'd appreciate any insights into this perplexing result.

*********  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*************



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