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/