Is it possible to superimpose binscatter plot?
I would usually do this with scatter in the following way
sysuse auto, clear gen rep78_2 = rep78 + cond(foreign, 0.1, -0.1) scatter mpg rep78_2 if foreign, ms(Oh) mcolor(red) /// || scatter mpg rep78_2 if !foreign, ms(X) mcolor(blue) /// || lfit mpg rep78 if foreign, lcolor(red) /// || lfit mpg rep78 if !foreign, lcolor(blue) /// ytitle("`: var label mpg'") legend(order(1 "Foreign" 2 "Domestic"))
But the twoway command or || do not seem to work with the binscatter plot command
Many thanks
Related Posts with Is it possible to combine twoway binscatter?
Making an average when there are more than two values in different lines (of the same ID)Hi, everyone I am struggling with restructuring my data. Below is the format of my data: PID stand…
new package twby available on SSC: create a cross-tabulation of graphsThanks to Kit Baum, a new package, twby, is now available on SSC. It is a prefix command for twoway …
Stock Prices Technical Analysis Pattern Recognition using STATAHello everyone. I am trying to use STATA to detect technical analysis patterns in stock prices. Does…
Plotting curves for hazard model with firm level stratificationDear all, I am running a stratified cox model on a firm-year dataset. The command i use is: stset y…
Interactive fixed effectsDear All Is there any non-technical introduction to "Interactive fixed effects". Especially when it …
Subscribe to:
Post Comments (Atom)
0 Response to Is it possible to combine twoway binscatter?
Post a Comment