Just came across a neat user-created Stata command, mcp, that can transform marginal effects' results into intuitive graphs. An extremely helpful description (and brief tutorial) is found here. A more technical description from the Stata manual follows.
"marginscontplot [mcp] provides a graph of the marginal effect of a continuous predictor on the response variable in the most recently fit regression model. When only xvar1 is provided, the plot of marginal effects is univariate at values of xvar1 specified by the at1() or var1() option. When both xvar1 and xvar2 are provided, the plot of marginal effects is against values of xvar1 specified by the at1() or var1() option for fixed values of xvar2 specified by the at2() or var2() option. A line is plotted for each specified value of xvar2.
marginscontplot has the distinctive ability to plot marginal effects on the original scale of xvar1 or xvar2, even when the model includes transformed values of xvar1 or xvar2 but does not include xvar1 or xvar2 themselves. Such a situation arises in models involving simple transformations such as logs and more complicated transformations such as fractional polynomials or splines, for example, where nonlinear relationships with continuous predictors are to be approximated. Transformed covariates are included in the model to achieve this."
Comments