Visualizing relationship after controls
This Stata program allows one to visualize the relationship between a dependent variable and one independent variable of interest. The approach is motivated by the Frisch-Waugh-Lovell theorem. It is quite useful when you want to see what your regression with control variables is actually representing, which can help you to determine whether a linear or other specification might make sense, as well as identifying outliers that may be driving regression results.
Code:
Small example: