Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: comparing regression coefficients across models


From   "Narasimhan Sowmyanarayanan" <[email protected]>
To   [email protected]
Subject   st: comparing regression coefficients across models
Date   Mon, 26 Jun 2006 11:29:28 -0400

Dear Statalist.

I have two models say y1 = a + bx1+cx2+e and y2 = a2 + (b1)x3+(c1)
x4+e. I want to compare if b1 = b after running the respective
regressions. I tried to store the estimates and use "test [equation1
name] _b[coefficientname] = [equation2 name] _b[coefficientname]".

I guess that stata stores only the last estimates. also when I use the
above command I get  a error

=exp required
r(100);

I am not sure what I am doing wrong. Would be grateful for pointers.

Thanks.
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index