Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: Comparing mean of two regression models


From   David Ashcraft <ashcraftd@rocketmail.com>
To   StataList <statalist@hsphsun2.harvard.edu>
Subject   st: Comparing mean of two regression models
Date   Sat, 10 Dec 2011 22:05:19 -0800 (PST)

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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index