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?
Regression with 150 variablesHi, I want to run a simple regression but I have 150 variables and I do not want to type all of the…
Instrument as control variable for main hypothesis in earlier section of a paper, when 2SLS only used in later sectionDear Statalist Community, I was wondering about good practice in economcetric research, in particul…
Estout with PCA outputHi, I am trying to export PCA output to a word document. I have found useful documentation online (…
evealuating balance after eteffectsHello all, Is there a reason why tebalance summarize is not available after eteffects? Is this beca…
Conformability error, r(503)Hi everyone, I have a problem when I want to input a matrix in Stata. First I local some results and…
Subscribe to:
Post Comments (Atom)
0 Response to Is it possible to combine twoway binscatter?
Post a Comment