Hi All,
I am struggling with finding a way to have separate connected lines for each model in one figure. If you have any suggestion, please help if you can. below is an example. Thank you so much!
sysuse auto
regress price ib12.mpg if foreign==0
estimates store domestic
regress price ib12.mpg if foreign==1
estimates store foreign
coefplot domestic foreign, drop(_cons) vertical xlabel(, angle(45) labsize(small) grid) addplot(scatter @b @at, connect(l))
I can do it using the code below, but I need it in one figure:
coefplot domestic || foreign, drop(_cons) vertical xlabel(, angle(45) labsize(small) grid) addplot(scatter @b @at, connect(l))
I am struggling with finding a way to have separate connected lines for each model in one figure. If you have any suggestion, please help if you can. below is an example. Thank you so much!
sysuse auto
regress price ib12.mpg if foreign==0
estimates store domestic
regress price ib12.mpg if foreign==1
estimates store foreign
coefplot domestic foreign, drop(_cons) vertical xlabel(, angle(45) labsize(small) grid) addplot(scatter @b @at, connect(l))
I can do it using the code below, but I need it in one figure:
coefplot domestic || foreign, drop(_cons) vertical xlabel(, angle(45) labsize(small) grid) addplot(scatter @b @at, connect(l))
Comment