Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: using macro

From   Nick Cox <>
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


On Mon, Apr 30, 2012 at 9:00 PM, urbain thierry YOGO <> 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:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index