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?
Extending dummy variable flag over multiple datesHello, I have a panel dataset comprising three variables: ID Date-quarter transdummy transdummy i…
Stacked bar graph per groupsDear all, I would like to realize a stacked graph bar showing the different values of each category…
p-value for standardized rate ratioHello, I would like to compare two directly standardized rates by computing a standardized rate rat…
another questions about converting HRF datetime to SIFI have read "help datetime", but am still having trouble converting a string datetime variable into …
Best model for binary dependent var and ordinal independent var?I have a dataset where I can see if individuals made a certain choice or not in a game. The variable…
Subscribe to:
Post Comments (Atom)
0 Response to Is it possible to combine twoway binscatter?
Post a Comment