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 at the end of May, and its replacement, statalist.org is already up and running.


[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 <emfoster@uab.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index