In teaching I often see regression lines with overlaid Gaussian curves showing the residual distribution. How can I make one of these in Stata?
So you can see what I mean, here's a blog post showing how to do it in SAS:
https://blogs.sas.com/content/iml/20...reg-model.html
And here's an example in R:
https://stackoverflow.com/questions/...egression-line
There's a cooler version that's 3D, with the Gaussians seeming to rise off the line plot. I'll see if I can find it.
So you can see what I mean, here's a blog post showing how to do it in SAS:
https://blogs.sas.com/content/iml/20...reg-model.html
And here's an example in R:
https://stackoverflow.com/questions/...egression-line
There's a cooler version that's 3D, with the Gaussians seeming to rise off the line plot. I'll see if I can find it.
Comment