Statalist The Stata Listserver


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

st: Re: suest after regress: equation not found


From   Friedrich Huebler <huebler@rocketmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: suest after regress: equation not found
Date   Fri, 9 Jun 2006 21:14:28 -0700 (PDT)

Thank you, Scott.

Friedrich

--- Scott Merryman <smerryman@kc.rr.com> wrote:
> The test statement should be (at least for Stata 9.2)
>   
> test [f0_mean = f1_mean] 
> 
> Or for just one variable, 
> 
> test [f0_mean]weight= [f1_mean]weight
> 
> Scott
> 
> 
> > -----Original Message-----
> > From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> > statalist@hsphsun2.harvard.edu] On Behalf Of Friedrich Huebler
> > Sent: Friday, June 09, 2006 12:02 PM
> > To: statalist@hsphsun2.harvard.edu
> > Subject: st: suest after regress: equation not found
> > 
> > I would like to compare regression coefficients across groups. I
> use
> > Stata 8.2 and tried to adapt the code in the Reference Manual
> entry
> > for -suest-, under the heading "Testing cross-model hypotheses"
> (p.
> > 139 in my copy of the manual). I am not familiar with -suest- and
> my
> > commands return the error message "[equation] not found ". What
> am I
> > doing wrong?
> > 
> > . sysuse auto, clear
> > . regress mpg weight if foreign==0, score(f0)
> > . est store f0
> > . regress mpg weight if foreign==1, score(f1)
> > . est store f1
> > . suest f0 f1
> > . test _b[f0]=_b[f1]
> > [f0] not found
> > r(111);
> > 
> > . test [f0=f1]
> > equation f0 not found
> > r(303);
> > 
> > Friedrich Huebler


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index