Stata Blogger?

Are you a Stata blogger? Join the aggregator!

Plotting restricted cubic splines in Stata [with controls]

Michael Roberts has been trying to convince me to us restricted cubic splines to plot highly nonlinear functions, in part because they are extremely flexible and they have nice properties near their edges.  Unlike polynomials, information at one e…

Continue reading Plotting restricted cubic splines in Stata [with controls]

Quickly plotting nonparametric response functions with binned independent variables [in Stata]

Yesterday’s post described how we can bin the independent variable in a regression to get a nice non-parametric response function even when we have large data sets, complex standard errors, and many control variables.  Today’s post is a …

Continue reading Quickly plotting nonparametric response functions with binned independent variables [in Stata]

Prettier graphs with less headache: use schemes in Stata

I’m picky about graphs looking nice. So for a long time I did silly things that drove me nuts, like typing “ylabel(, angle(horizontal))” for every single Stata graph I made (since some of the default settings in Stata are not pretty). I always knew tha…

Continue reading Prettier graphs with less headache: use schemes in Stata

Plot polynomial of any degree in Stata (with controls)

FE has been a little sluggish to recover from break. To kick start us back in gear, I’m making good on one resolution by making this FE Week-of-Code. I’ll try to post something useful that I’ve written from the past year each day.It always bugged me th…

Continue reading Plot polynomial of any degree in Stata (with controls)

Visually-Weighted Regression

[This is the overdue earth-shattering sequel to this earlier post.]I recently posted this working paper online. It’s very short, so you should probably just read it (I was actually originally going to write it as a blog post), but I’ll run through…

Continue reading Visually-Weighted Regression