Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

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

From |
Joerg Luedicke <joerg.luedicke@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

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 <ashcraftd@rocketmail.com> 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/

**Follow-Ups**:**Re: st: Comparing mean of two regression models***From:*David Ashcraft <ashcraftd@rocketmail.com>

**Re: st: Comparing mean of two regression models***From:*David Ashcraft <ashcraftd@rocketmail.com>

**References**:**st: Comparing mean of two regression models***From:*David Ashcraft <ashcraftd@rocketmail.com>

- Prev by Date:
**Re: st: Different results using xtabond2 on 32-bit and 64-bit Windows 7 machines** - Next by Date:
**Re: st: Comparing mean of two regression models** - Previous by thread:
**st: Comparing mean of two regression models** - Next by thread:
**Re: st: Comparing mean of two regression models** - Index(es):