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.

vii18.11.6 Writing online help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24718.11.7 Programming dialog boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25318.12 A compendium of useful commands for programmers . . . . . . . . . . . . . . . . . . . . . 25318.13 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25319 Immediate commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25519.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25519.1.1 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25619.1.2 A list of the immediate commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25819.2 The display command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25820 Estimation and postestimation commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25920.1 All estimation commands work the same way . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25920.2 Standard syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26220.3 Replaying prior results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26420.4 Cataloging estimation results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26520.5 Saving estimation results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26620.6 Specifying the estimation subsample . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26720.7 Specifying the width of confidence intervals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26820.8 Obtaining the variance–covariance matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26920.9 Obtaining predicted values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27020.9.1 Using predict . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27220.9.2 Making in-sample predictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27320.9.3 Making out-of-sample predictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27320.9.4 Obtaining standard errors, tests, and confidence intervals for predictions 27420.10 Accessing estimated coefficients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27520.11 Performing hypothesis tests on the coefficients . . . . . . . . . . . . . . . . . . . . . . . . . . . 27820.11.1 Linear tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27820.11.2 Using test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27920.11.3 Likelihood-ratio tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28020.11.4 Nonlinear Wald tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28120.12 Obtaining linear combinations of coefficients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28220.13 Obtaining nonlinear combinations of coefficients . . . . . . . . . . . . . . . . . . . . . . . . . . 28320.14 Obtaining marginal means, adjusted predictions, and predictive margins . . . . . . . 28520.14.1 Obtaining expected marginal means . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28520.14.2 Obtaining adjusted predictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28820.14.3 Obtaining predictive margins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28920.15 Obtaining conditional and average marginal effects . . . . . . . . . . . . . . . . . . . . . . . . 29420.15.1 Obtaining conditional marginal effects . . . . . . . . . . . . . . . . . . . . . . . . . . 29420.15.2 Obtaining average marginal effects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29620.16 Obtaining robust variance estimates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29720.17 Obtaining scores . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30220.18 Weighted estimation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30520.18.1 Frequency weights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30620.18.2 Analytic weights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30720.18.3 Sampling weights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30720.18.4 Importance weights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30920.19 A list of postestimation commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31020.20 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311Advice21 Inputting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315

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

Saved successfully!

Ooh no, something went wrong!