11.07.2015 Views

[U] User's Guide

[U] User's Guide

[U] User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

[ U ] 20.4 Cataloging estimation results 265This feature works with every estimation command, so we could just as well have done it with, say,stcox or logit.20.4 Cataloging estimation resultsStata keeps only the results of the most recently fitted model in active memory. You can use Stata’sestimates command, however, to temporarily store estimation results for displaying, comparing,cross-model testing, etc., during the same session. You can also save estimation results to disk, butthat will be the subject of the next section. You may temporarily store up to 300 sets of estimationresults.Example 3Continuing with our automobile data, we fit four models and estimates store them. We fit themodels quietly to keep the output to a minimum.. quietly regress mpg weight displ. estimates store r_base. quietly regress mpg weight displ foreign. estimates store r_alt. quietly qreg mpg weight displ. estimates store q_base. quietly qreg mpg weight displ foreign. estimates store q_altWe saved the four models under the names r base, r alt, q base, and q alt but, if we forget,we can ask to see a directory of what is stored:. estimates dirmodel command depvar npar titler_base regress mpg 3r_alt regress mpg 4q_base qreg mpg 3q_alt qreg mpg 4We can ask that any of the previous models be replayed:. estimates replay r_baseModel r_baseSource SS df MS Number of obs = 74F( 2, 71) = 66.79Model 1595.40969 2 797.704846 Prob > F = 0.0000Residual 848.049768 71 11.9443629 R-squared = 0.6529Adj R-squared = 0.6432Total 2443.45946 73 33.4720474 Root MSE = 3.4561mpg Coef. Std. Err. t P>|t| [95% Conf. Interval]weight -.0065671 .0011662 -5.63 0.000 -.0088925 -.0042417displacement .0052808 .0098696 0.54 0.594 -.0143986 .0249602_cons 40.08452 2.02011 19.84 0.000 36.05654 44.11251

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!