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]
st: Comparing mean of two regression models
From
David Ashcraft <[email protected]>
To
StataList <[email protected]>
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/