post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf ·...
TRANSCRIPT
![Page 1: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/1.jpg)
Post-estimation commands forregression models forcategorical & count outcomes
Jeremy FreeseUniversity of Wisconsin-Madison
J. Scott LongIndiana University
![Page 2: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/2.jpg)
Models for categorical andcount outcomes
n Stata makes estimating these modelseasy
n Interpretation is more complicatedn Our SPost suite of commands is
designed to facilitate interpretation andother tasks with these models
n Type net search spost to download
![Page 3: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/3.jpg)
SPost command: fitstat
n Computes goodness-of-fit statisticsn Both Pseudo-R2s and information
measures (i.e., AIC and BIC)
n Can be used with saving() and using()options
![Page 4: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/4.jpg)
![Page 5: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/5.jpg)
Why are results fromcategorical and count modelsoften difficult to interpret?
Nonlinearities mean thatinterpretation depends on the
values of all independentvariables.
![Page 6: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/6.jpg)
SPost command: prvalue
n Produces predicted values for specifiedset of values of the independentvariables
n Specific values are set with x() optionn All other values set with rest() optionn save and dif options to calculate
differences between two sets of values
![Page 7: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/7.jpg)
![Page 8: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/8.jpg)
SPost command: prtab
n Predicted probabilities for a cross-classification of 2-4 categoricalindependent variables
n Values of other variables specified byx() and rest()
![Page 9: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/9.jpg)
![Page 10: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/10.jpg)
SPost command: prgen
n Adds pseudovariables to data that canbe used to generate plots of howpredicted probability changes overrange of continuous independentvariable
n from() and to() options specifyrange of independent variable
![Page 11: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/11.jpg)
![Page 12: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/12.jpg)
![Page 13: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/13.jpg)
SPost command: praccum
n More flexible (but harder to use) syntaxthat works with more complex modelspecifications
![Page 14: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/14.jpg)
SPost command: prchange
n Computes marginal and discretechange
n Discrete change from min->max, 0->1,as x increases by 1 unit, and as xincreases by 1 sd
![Page 15: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/15.jpg)
![Page 16: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/16.jpg)
SPost command: prcounts
n Akin to predict, but generates newvariables that contain the predictedprobabilities of observing counts 0through specified value (default=9)
n prcounts dog will generate dogp0,dogp1 ... dogp9, as well as cumulativeprobabilities dogs0 ... dogs9
![Page 17: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/17.jpg)
SPost command: listcoef
n listcoef, std – standardizedcoefficients (x-standardized, y-standardized, fully standardized)
n listcoef, factor – factor changein the odds/expected count
n listcoef, percent – percentchange in the odds/expected count
![Page 18: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/18.jpg)
![Page 19: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/19.jpg)
SPost command: mlogtest
n Wald or LR test whether the effect of anindependent variable is zero across allequations
n Wald or LR test whether a pair ofoutcomes is indistinguishable
n Hausman or Small-Hsiao tests of the IIAassumption
![Page 20: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/20.jpg)
SPost command: mlogview
n Dialog box interface for generatingdiscrete change plots or odds ratioplots for mlogit models
![Page 21: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/21.jpg)
![Page 22: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/22.jpg)
![Page 23: Post-estimation commands for regression models for ... › meeting › 1nasug › freese.pdf · Post-estimation commands for regression models for categorical & count outcomes Jeremy](https://reader035.vdocument.in/reader035/viewer/2022070818/5f157bc761003646be65f0f2/html5/thumbnails/23.jpg)