The following code is supposed to create a graph ( like the attached one here ) but unfortunately, I'm getting an error saying - invalid 'size'
r(198);

any help or guidance from anyone

Code:
*******COEFPLT Dr. DUBE 
global SDUMMY     i.statefip i.year
eststo clear
reghdfe ln_weekearn  ///
cdme ///
hks sks /// 
aj lks  /// 
rising  $SDUMMY [aw=earnwt] , absorb(i.statefip) vce(cluster statefip) 
eststo e1 

coefplot (e1 , mcolor(red%50) msymbol(O) msize(large) ciopts(recast(rcap)) color(red%50)) keep(cdme)) ///
(e1 , mcolor(green%50) msymbol(S) msize(large) keep(hks sks) ciopts(recast(rcap)) color(green%50)))  ///
(e1 , mcolor(purple%50) msymbol(T) msize(large) keep(aj)  ciopts(recast(rcap)) color(purple%50))) ///
(auto_dube , mcolor(blue%50) msymbol(D) msize(large) keep(rising)  ciopts(recast(rcap)) color(blue%50))) , ///
scheme(plotplain) xtitle("COEFOLOT"), size(large) /// 
xline(0, lcolor(gs7) lpat(solid) legend(off) grid(none)) ///
yline(3 10 18, lcolor(gs7%40)) lapt(dot)) ///
groups(cdme ="{bf:Local}") ///
hks sks ="{bf:Spectrum}") ///
aj lks  = "{bf:Industry}") /// 
rising = "{bf:demand}") 
gr export "coefplot.pdf", replace


Code:
 * Example generated by -dataex-. For more info, type help dataex
clear
input float(ln_weekearn cdme hks sks aj lks rising) double earnwt byte statefip int year
       . -.1 0 1 1 0 0          0 1 1996
       . -.2 0 1 1 0 0          0 1 1996
       . -.3 0 1 1 0 0          0 1 1996
6.520998 -.3 0 1 1 0 0 11868.2414 8 2002
       . -.1 0 0 1 0 0          0 4 1998
       . -.2 0 0 1 0 0          0 4 1998
       . -.3 0 0 1 0 0          0 4 1998
 7.23574 -.3 0 0 1 0 0 10622.8448 8 2002
       . -.1 0 0 0 0 0          0 6 1999
       . -.2 0 0 0 0 0          0 6 1999
       . -.3 0 0 0 0 0          0 6 1999
       . -.3 0 0 0 0 0  9430.3123 6 2004
       . -.1 0 0 0 0 0          0 1 1996
       . -.2 0 0 0 0 0          0 1 1996
       . -.3 0 0 0 0 0          0 1 1996
       . -.3 0 0 0 0 0 10478.1475 6 2004
       . -.2 0 0 1 0 0          0 6 1997
       . -.3 0 0 1 0 0          0 6 1997
       . -.3 0 0 1 0 0          0 6 1997
5.990339 -.2 0 1 1 0 0 13736.5457 4 2008
       . -.2 0 0 1 0 0          0 1 1996
       . -.3 0 0 1 0 0          0 1 1996
       . -.3 0 0 1 0 0          0 1 1996
 6.19718 -.2 0 0 1 0 0  9774.6278 4 2008
       . -.2 0 0 0 0 0          0 8 1999
       . -.3 0 0 0 0 0          0 8 1999
       . -.3 0 0 0 0 0          0 8 1999
       . -.2 0 0 0 0 0  9183.4515 2 2010
       . -.2 0 0 1 0 0          0 1 1996
       . -.3 0 0 1 0 0          0 1 1996
       . -.3 0 0 1 0 0          0 1 1996
 6.19718 -.2 0 0 1 0 0 11644.6988 2 2010
       . -.3 0 0 0 0 0          0 1 1996
       . -.3 0 0 0 0 0          0 1 1996
6.846935 -.2 0 0 0 0 0 11644.6988 4 2012
       . -.2 0 1 1 0 0          0 1 1996
       . -.3 0 1 1 0 0          0 1 1996
       . -.3 0 1 1 0 0          0 1 1996
6.873564 -.2 0 1 1 0 0 11005.0987 4 2012
       . -.2 0 0 0 0 0          0 1 1996
       . -.3 0 0 0 0 0          0 1 1996
       . -.3 0 0 0 0 0          0 1 1996
       . -.2 0 0 0 0 0   10399.04 1 1996
       . -.3 0 0 0 0 0          0 1 1996
       . -.3 0 0 0 0 0          0 1 1996
       . -.2 0 0 0 0 0          0 1 1996
       . -.2 0 0 0 0 0 11189.5283 1 1996
       . -.3 0 0 1 1 0          0 8 1996
       . -.3 0 0 0 0 0          0 8 1996
       . -.2 0 0 0 0 0          0 8 1996
       . -.2 0 1 1 0 0  14571.094 1 1996
       . -.3 0 0 1 1 0          0 1 1996
       . -.3 0 0 1 1 0          0 1 1996
       . -.2 0 0 1 1 0          0 1 1996
5.943821 -.2 0 0 1 1 0 14568.3216 6 1998
       . -.3 0 0 1 0 0          0 1 1996
       . -.3 0 0 1 0 0          0 1 1996
       . -.2 0 0 1 0 0          0 1 1996
5.999409 -.2 0 0 1 0 0 10463.1051 8 1999