Hello,
I am trying to produce a tw graph. I want to create a linear fit, but I see a "kink" in the middle of the line, opposed to what I would expect --- a simple straight line.
To give you an idea, my graph currently looks like this:

My code is the following:
How do I make the lfit straight?
Thanks in advance.
I am trying to produce a tw graph. I want to create a linear fit, but I see a "kink" in the middle of the line, opposed to what I would expect --- a simple straight line.
To give you an idea, my graph currently looks like this:
My code is the following:
Code:
tw (scatter arntz_auto relwage if isco1d==1, xsc(log) msymbol(circle) mfc(none)) /// (scatter auto rw if isco1d==2, xsc(log) msymbol(square) mfc(none)) /// (scatter auto rw if isco1d==3, xsc(log) msymbol(diamond) mfc(none)) /// (scatter auto rw if isco1d==4, xsc(log) msymbol(cross) mfc(none)) /// (scatter auto rw if isco1d==5, xsc(log) msymbol(triangle) mfc(none)) /// (scatter auto rw if isco1d==6, xsc(log) msymbol(circle) mfc(none)) /// (scatter auto rw if isco1d==7, xsc(log) msymbol(square) mfc(none)) /// (scatter auto rw if isco1d==8, xsc(log) msymbol(diamond) mfc(none)) /// (scatter auto rw if isco1d==9, xsc(log) msymbol(cross) mfc(none)) /// (lfit auto relwage if inlist(isco1d, 3,4,5,7,8,9),color(black) lwidth(vthin)), /// legend(order(1 2 3 4 5 7 8 9) label(1 "Manager") label(2 "Professionals") label(3 "Technicians") label(4 "Clerks") label(5 "Services and Sales") label(7 "Craft and Trades") label(8 "Plant and Machine") label(9 "Elementary")) /// ytitle("Automation Potential (Arntz et al)") xtitle("Relative Wage")
Thanks in advance.
Comment