Hi all--I am wondering if there is a way to plot both a linear and quadratic line on my scatters. When I try one or the other, it works fine, but it doesn't seem to work with both. Maybe my syntax is wrong or maybe there is a more creative way to do this . . . does anyone have advice? (Also, I realize I can make this work with scatter, but I have too many points, so I've been using binscatter.)
WORKS:
DOESN'T WORK:
DOESN'T WORK:
WORKS:
Code:
binscatter resid prop_same, nquantiles(100) line(qfit)
Code:
binscatter resid prop_same, nquantiles(100) line(lfit) line(qfit)
Code:
binscatter resid prop_same, nquantiles(100) line(lfit qfit)
Comment