Stata: Interpreting and Visualizing Regression Models Using Commands margins, marginsplot, and coefplot

May 9, 2017, 9:30 am12:00 pm


Event Description

This workshop will show how the Stata commands margins and marginsplot can be used for model interpretation and visualization, and will present ways to compute adjusted predictions and marginal effects, as well as ways to compare predictions for levels of a factor variable.

The workshop will also demonstrate how the user-written command coefplot, by Ben Jann, can be applied to any estimation results to graphically display regression coefficients or other statistics of interest.  One nice feature of coefplot is that it can be used to very easily display results from several models on one graph.  Another nice feature is that most of the options available for other twoway plot types can also be used with the coefplot command.

Margins Presentation

Margins Source Code

Coefplot Presentation

Coefplot Source Code