Sometimes you want to do the smoothed regression plots with interactions per groups. I have two helper functions to do this. One isgroup_rcs_plot. Here I use the good old iris data to illustrate, which I will explain why in a second. #Superimposing rcs on the same plot iris = sns.loa...
FromAlice Guerra <alice.guerra88@gmail.com> Tostatalist@hsphsun2.harvard.edu Subjectst: scatterplot with equation line DateFri, 1 Nov 2013 15:17:11 +0100 Follow-Ups: Re: st: scatterplot with equation line From:Scott Merryman <scott.merryman@gmail.com>...
The interesting part is that it now becomes possible to plot regression parameters for the interaction(s). Just add the argument 'int' to the regparameters() option to receive the specified parameters for the interaction terms as well. scatterfit redistr pinc_net, binned by(labf) bymethod(in...
binscatter provides built-in options to control for covariates before plotting the relationship, and can automatically plot regression discontinuities. All procedures in binscatter are optimized for speed in large datasets. Example The following graph shows the relationship between quality of teaching in el...
A scatterplot for the whiskers; and A scatterplot for the data points. As usual, I try to set up my Excel file so that this can be more easily replicated with other data later on. It takes a little longer to build the initial chart, but that will pay off with time savings later ...