Thanks very much -- problem solved!
wg
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Steichen,
Thomas J.
Sent: Wednesday, December 22, 2004 12:32 PM
To: [email protected]
Subject: st: RE: How to display row labels in output matrix
Garrard, Wendy M. writes:
> 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 */
It looks like you need to replace line:
di "`rl'" %9.3f r(corr) %9.3f r(pr) `i'
with:
di "`v'" %9.3f r(corr) %9.3f r(pr) `i'
or
di "`:var label `v''" %9.3f r(corr) %9.3f r(pr) `i'
Tom
-----------------------------------------
CONFIDENTIALITY NOTE: This e-mail message, including any
attachment(s), contains information that may be confidential, protected
by the attorney- client or other legal privileges, and/or proprietary
non-public information. If you are not an intended recipient of this
message or an authorized assistant to an intended recipient, please
notify the sender by replying to this message and then delete it from
your system. Use, dissemination, distribution, or reproduction of this
message and/or any of its attachments (if any) by unintended recipients
is not authorized and may be unlawful.
*
* 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/
*
* 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/