Bookmark and Share

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]

Re: st: How to name equations or test coeffs across regs


From   Stas Kolenikov <skolenik@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: How to name equations or test coeffs across regs
Date   Mon, 27 Sep 2010 17:24:28 -0500

I never even try to guess the names, but just -matrix list e(b)- to
see what they are. And then you can incorporate them into the syntax
of -test- as Michael explained.

. qui sureg (price length weight) (mpg length weight)

. mat li e(b)

e(b)[1,6]
         price:      price:      price:        mpg:        mpg:        mpg:
        length      weight       _cons      length      weight       _cons
y1  -97.960312   4.6990649   10386.541  -.07959347  -.00385148   47.884873

On Mon, Sep 27, 2010 at 1:53 PM, Emily Rauscher <emily.rauscher@nyu.edu> wrote:
>
> I am trying to use the test function to see whether a coefficient is equal in two different OLS regressions.  However, I cannot figure out how to name equations.
>
> When I use the sureg command, as suggested on pp. 1914-5 of the version 11 user's manual, stata does not recognize the first word as an equation name and gives an error.
>
> I feel I'm missing something very simple, but I have searched the manual and tried everything I can find.
> Any suggestions - for either naming equations or a better way to test the equality of coefficients in different regressions - would be hugely appreciated.


-- 
Stas Kolenikov, also found at http://stas.kolenikov.name
Small print: I use this email account for mailing lists only.

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


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index