Nirina F <[email protected]>:
see -help macrolists- (linked from -help extended_fcn- which is linked
from -help macro-).
On 9/19/07, Nirina F <[email protected]> wrote:
> Hello all,
>
> I have read Kit's paper but still not familiar with programming.
>
> I have:
>
> global x "x1 until x8"
> global y "y1 until y15"
> global z "z1 until z3"
> global w "w1 until w24"
> global k "k1 until k9"
>
> local xvars "$x $y $z $w $k"
> local out "x1 y1 z1 w1 k1 x7 y13 z3 k4 w20"
>
> I would like to do
>
> foreach i in out {
> reg `i' `xvars'
> }
>
> but now I would have depedent variable collinear with one of control
> variable. So how could I run the reg but telling my controls `xvars'
> to not include what is taken by `i' ?
>
> Thank you so much in advance for your help
>
> Nirina
> *
> * 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/