benjann / estout

Stata module to make regression tables
http://repec.sowi.unibe.ch/stata/estout/index.html
MIT License
70 stars 17 forks source link

Possible issue with precedence of stored estimation #8

Closed NilsEnevoldsen closed 9 years ago

NilsEnevoldsen commented 9 years ago

I'm unsure what expected behavior is here:


. sysuse auto
(1978 Automobile Data)

. qui eststo: reg price weight

. qui reg price length

. esttab

----------------------------
                      (1)   
                    price   
----------------------------
weight              2.044***
                   (5.42)   

_cons              -6.707   
                  (-0.01)   
----------------------------
N                      74   
----------------------------
t statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001

. 

The user expected esttab to parse the product of reg price length.

The trouble begins when capt est_expand $eststo, and est1 is found to be present in $eststo.

See this Stata thread for background.

NilsEnevoldsen commented 9 years ago

Nevermind. I just needed to read the documentation. Working as expected.

namelist provides the names of the stored estimation sets to be tabulated. You may use the * and ? wildcards in namelist. The results estimated last may be indicated by a period (.), even if they have not yet been stored. If no model is specified, estout tabulates the estimation sets stored by eststo (see help eststo) or, if no such estimates are present, the currently active estimates (i.e. the model fit last).