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

RE: st: RE: Nested If / then statement in a Bar Graph


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   RE: st: RE: Nested If / then statement in a Bar Graph
Date   Wed, 25 Aug 2004 11:10:08 +0100 (BST)

David Harrison replied:

> To get the beta weights, you need to add the lines
>
> betacoef
> matrix A=r(beta)
>
> anywhere after the -regress- and before -foreach- (straight after
> -regress- seems the obvious place) and change the line
>
> gen `b_`v'' = _b[`v']
>
> to
>
> gen `b_`v'' = A[1,`i']

Excellent: this worked a treat! Ta.

CLIVE NICHOLAS        |t: 0(044)191 222 5969
Politics              |e: [email protected]
Newcastle University  |http://www.ncl.ac.uk/geps
*
*   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