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]
Re: st: generate regression coefficients as varaibles
From 
 
Nahla Betelmal <[email protected]> 
To 
 
[email protected] 
Subject 
 
Re: st: generate regression coefficients as varaibles 
Date 
 
Thu, 10 Jan 2013 13:59:29 +0000 
PERFECT, it works!
Thanks a million
Nahla
On 9 January 2013 21:37, Nick Cox <[email protected]> wrote:
> forval y=2001/2012 {
>       forval  i= 1/37 {
>             reg Wscaled Wone Wscaled_ch WPPE if  sic== `i' & datayearfiscal==`y'
>             replace coefficientCon = _b[_cons]  if datayearfiscal==`y'
> & sic==`i'
>       }
> }
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/