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: using macro
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: using macro
Date
Mon, 30 Apr 2012 21:09:11 +0100
Using a local macro should make no difference. Something else that you
are doing makes a difference.
Check by displaying the macro just before you use it.
di "`controls'"
regress y x `controls', ro
Nick
On Mon, Apr 30, 2012 at 9:00 PM, urbain thierry YOGO <[email protected]> wrote:
> I am a bit confuse about what come out while using a macro with
> regress. For instance i want to run the following model:
> regress y x a b c d, ro (1)
> and i use macro
> local controls a b c d
> after
> regress y x `controls', ro (2)
>
> the point is that i don't understand why the coefficient of x differs
> accross equations. Please can somebody explain me? thanks in advance
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/