Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: How to display row labels in output matrix


From   "Garrard, Wendy M." <[email protected]>
To   <[email protected]>
Subject   st: How to display row labels in output matrix
Date   Wed, 22 Dec 2004 12:16:56 -0600

Hello,
The following command extracts a corr coefficient and p-value from a
custom meta-analysis regression. I cannot get the variable names (or
labels) to display for each row.  Could someone suggest a solution?  
Thanks,
Wendy
~~~~~~~~~~~~~~~~~~

/* start */
local i 0
foreach v of varlist  s_Sex s_Age s_Race s_PriorASB s_OtherRisk  s_ES {
      qui metaregW2  es_adj `v' [w=weight] , model(ml)
      local i = `i' + 1
         if `i' == 1 {
           di ""
           di "    Coeff   p-value" 
           }
      di "`rl'" %9.3f r(corr) %9.3f r(pr) `i'
      }
/* stop */

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



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index