Hey guys! I want to adjust the range of my scatterplot. I have some large outliers that I still want to include in my estimates, just not in the figure.
Code:
twoway (scatter bf078 year if treat == 1 & lowincomelimit == 1, msize(vsmall) mcolor(red)) (scatter bf078 year if treat == 1 & lowincomelimit == 0, msize(vsmall) mcolor(blue)) (qfitci bf078 year if year < 2011 & treat == 1 & lowincomelimit == 1, sort lcolor(black)) (qfitci bf078 year if year > 2011 & treat == 1 & lowincomelimit == 1, sort lcolor(black)) (qfitci bf078 year if year < 2011 & treat == 1 & lowincomelimit == 0, sort lcolor (green)) (qfitci bf078 year if year > 2011 & treat == 1 & lowincomelimit == 0, sort lcolor(green)), xline(2011) ytitle("bf078")
Graph:
Code:
twoway (scatter bf078 year if treat == 1 & lowincomelimit == 1, msize(vsmall) mcolor(red)) (scatter bf078 year if treat == 1 & lowincomelimit == 0, msize(vsmall) mcolor(blue)) (qfitci bf078 year if year < 2011 & treat == 1 & lowincomelimit == 1, sort lcolor(black)) (qfitci bf078 year if year > 2011 & treat == 1 & lowincomelimit == 1, sort lcolor(black)) (qfitci bf078 year if year < 2011 & treat == 1 & lowincomelimit == 0, sort lcolor (green)) (qfitci bf078 year if year > 2011 & treat == 1 & lowincomelimit == 0, sort lcolor(green)), xline(2011) ytitle("bf078")
Graph:
Comment