Hello everyone, I want to use the tw command to draw a scatter plot, but Stata keeps getting the error "parents do not balance". I checked the parentheses and there seems to be no problem.
DATA:
I want to plot graph like this image:

So i have typed code as follow, but something wrong in my code because stata said that: "parentheses do not balance":
Code:
I would appreciate any suggestions how can plot this graph. Thank you all.
DATA:
Code:
n1 coef se low up sample 17 16 15 -.677258 .5220768 -1.703554 .3490382 First-child:Girl 14 -1.343865 .311451 -1.954803 -.7329267 First-child:Boy 13 12 11 -.7073836 .4829693 -1.656105 .2413375 Private sectors 10 -.7405966 .619513 -1.959962 .4787686 Public sectors 9 8 7 -.8515229 .2903653 -1.421153 -.2818931 urban 6 -.8001119 .3184165 -1.424995 -.1752291 Rural 5 4 3 -1.05584 .2592954 -1.564424 -.5472564 High-educated 2 -.2954414 .3623798 -1.007028 .4161452 Low-educated 1
So i have typed code as follow, but something wrong in my code because stata said that: "parentheses do not balance":
Code:
Code:
loc s = -0.1 tw(scatter n1 coef , ylabel( "" , noticks nogrid) mlabel(sample) mlabp(17) xlabel(-0.12(0.02)0.06 0 "",noticks nogrid) xline(0, lp(dash) lcolor(brown))) (rcap up low n1 , lp(dash) lcolor(gsd1) ytit("") legend( label(1 "Coef.") label(2 "95% CI") col(1) ring(0) pos(5) size(*0.95)) hori graphregion(fcolor(white)) text(4 `s' "Panel D: ",place(e) size(*0.95)) text(8 `s' "Panel C: ",place(e) size(*0.95)) text(12 `s' "Panel B: ",place(e) size(*0.95)) text(16 `s' "Panel A: ",place(e) size(*0.95)))
Comment