Bookmark and Share

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: Comparing mean of two regression models


From   Joerg Luedicke <[email protected]>
To   [email protected]
Subject   Re: st: Comparing mean of two regression models
Date   Sun, 11 Dec 2011 02:02:31 -0500

Why not using a y2Xdummy interaction term?

However, if you want to do it that way you could use -suest-. Here is
an example:

*----------------------------------
sysuse auto
reg price mpg if foreign==0
est sto m1
reg price mpg if foreign==1
est sto m2
suest m1 m2, coefl
test _b[m1_mean:mpg]=_b[m2_mean:mpg]
*----------------------------------

Joerg

On Sun, Dec 11, 2011 at 1:05 AM, David Ashcraft
<[email protected]> wrote:
> This question seems dumb to me but somehow I am messed up. I am trying to compare the coefficients of two models. The data set is divided among two group by a dummy variable.
>
> reg y1 y2 if dummy==0
> est store con
> reg y1 y2 if dummy==1
> est store imf
> test [con_y2=imf_y2]
>
> I get the following response after the last command
>
> equation con_y2 not found
> r(303);
>
> Can somebody guide me where I am wrong or how should I perform this test?
> Regards
>
> David
>
> *
> *   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/

*
*   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/


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