Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: FW: table, gmm and parameters with different names


From   E Michael Foster <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: FW: table, gmm and parameters with different names
Date   Thu, 12 Jul 2012 20:21:34 +0000

For my class, I was comparing GMM with OLS as follows:

sysuse auto 

regress mpg gear_ratio turn length , robust 
est store a
gmm (main: mpg - {b0}-{xb:gear_ratio turn length} ) , instruments(gear_ratio turn length) 
est store b
gmm (main: mpg - {b0}-{b1}*gear_ratio-{b2}*turn -{b3}*length ) , instruments(gear_ratio turn length)
est store c
est table * , equations(1)

Which put me in a place I frequently find myself, where rows in a table don't line up as I would hope.  Here I get 

-----------------------------------------------------
    Variable |     a            b            c       
-------------+---------------------------------------
#1           |
  gear_ratio |  1.3566597                            
        turn | -.12191854                            
      length |  -.1665899                            
       _cons |  53.348702    53.348702    53.348702  
-------------+---------------------------------------
xb_gear_ra~o |
       _cons |               1.3566597               
-------------+---------------------------------------
xb_turn      |
       _cons |              -.12191854               
-------------+---------------------------------------
xb_length    |
       _cons |               -.1665899               
-------------+---------------------------------------
b1           |
       _cons |                            1.3566597  
-------------+---------------------------------------
b2           |
       _cons |                           -.12191854  
-------------+---------------------------------------
b3           |
       _cons |                            -.1665899  
-----------------------------------------------------

Anyway to have table simple list parameters in order without regard to their name?


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index