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   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   st: RE: suest after regress: equation not found
Date   Fri, 9 Jun 2006 17:07:19 -0500

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: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Friedrich Huebler
> Sent: Friday, June 09, 2006 12:02 PM
> To: [email protected]
> 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


*
*   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