11.07.2015 Views

[U] User's Guide

[U] User's Guide

[U] User's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

266 [ U ] 20 Estimation and postestimation commandsOr we can ask to see all the models in a combined table:. estimates table _allVariable r_base r_alt q_base q_altweight -.00656711 -.00677449 -.00581173 -.00595056displacement .00528078 .00192865 .00428411 .00018552foreign -1.6006312 -2.1326004_cons 40.084522 41.847949 37.559865 39.213348estimates displayed just the coefficients, but we could ask for other statistics. Finally, we can alsoselect one of the stored estimates to be made active, meaning things are just as if we had just fit themodel:. estimates restore r_alt(results r_alt are active now). regressSource SS df MS Number of obs = 74F( 3, 70) = 45.88Model 1619.71935 3 539.906448 Prob > F = 0.0000Residual 823.740114 70 11.7677159 R-squared = 0.6629Adj R-squared = 0.6484Total 2443.45946 73 33.4720474 Root MSE = 3.4304mpg Coef. Std. Err. t P>|t| [95% Conf. Interval]weight -.0067745 .0011665 -5.81 0.000 -.0091011 -.0044479displacement .0019286 .0100701 0.19 0.849 -.0181556 .0220129foreign -1.600631 1.113648 -1.44 0.155 -3.821732 .6204699_cons 41.84795 2.350704 17.80 0.000 37.15962 46.53628You can do a lot more with estimates; see [R] estimates. In particular, estimates makes iteasy to perform cross-model tests, such as the Hausman specification test.20.5 Saving estimation resultsestimates can also save estimation results into a file.. estimates save altfile alt.ster savedThat saved the active estimation results, the ones we just estimated or, in our case, the ones we justrestored. Later, even in another Stata session, we could reload our estimates:

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

Saved successfully!

Ooh no, something went wrong!