SMPL  2010  2013
PAGESELECT TIMESERIES
'set variables
%MODEL = "AP_SD2" 	' EB_STY 	EB_S_D		EB_S_2		EB_SD2
%MODEL3 = "SD2"	'STY	S_D	S_2	SD2

%MODEL0 = "AP_SD2"  '	EB_STY TB_STY		EB_S_D TB_S_D		EB_S_2 TB_S_2		EB_SD2 TB_SD2
%LIST ="AUS AUT BEL CAN DNK ESP FRA GBR IRL ITA JPN PRT USA DEU" 

!min=0
!max=0
FOR %IDC {%LIST}
	if  !min>@min({%VAR_to_PLOT}{%IDC}_0l) then
		!min=@min({%VAR_to_PLOT}{%IDC}_0l)
	endif
	if  !max<@max({%VAR_to_PLOT}{%IDC}_0h) then
		!max=@max({%VAR_to_PLOT}{%IDC}_0h)
	endif
NEXT

FOR %IDC {%LIST}
%FIG = "FIG1"
FOR %name {%VAR_to_PLOT} 
	delete {%FIG}_{%name}_{%IDC}*
graph {%FIG}_{%name}_{%IDC}.line {%VAR_to_PLOT}{%IDC}  {%VAR_to_PLOT}{%IDC}_0m {%VAR_to_PLOT}{%IDC}_0l {%VAR_to_PLOT}{%IDC}_0h {%VAR_to_PLOT}{%IDC}_ps0m {%VAR_to_PLOT}{%IDC}_ps0l {%VAR_to_PLOT}{%IDC}_ps0h
{%FIG}_{%name}_{%IDC}.option linepat 
{%FIG}_{%name}_{%IDC}.elem(3) lcolor(GREEN) lpat(dash7) lwidth(0.25)
{%FIG}_{%name}_{%IDC}.elem(4) lcolor(GREEN) lpat(dash7) lwidth(0.25)
{%FIG}_{%name}_{%IDC}.elem(2) lcolor(GREEN) lpat(solid) lwidth(2) SYM(STAR) symbolsize(4xl)
{%FIG}_{%name}_{%IDC}.elem(1) lcolor(BLACK) lpat(solid) lwidth(2)
{%FIG}_{%name}_{%IDC}.elem(5) lcolor(ORANGE) lpat(solid) lwidth(2) SYM(SQUARE) symbolsize(4xl)
{%FIG}_{%name}_{%IDC}.elem(6) lcolor(ORANGE) lpat(dash7) lwidth(0.25)
{%FIG}_{%name}_{%IDC}.elem(7) lcolor(ORANGE) lpat(dash7) lwidth(0.25)
'{%FIG}_{%name}_{%IDC}.elem(6) lcolor(RED) lpat(dash7) lwidth(0.25)
'{%FIG}_{%name}_{%IDC}.elem(5) lcolor(RED) lpat(solid) lwidth(2) SYM(CIRCLE) symbolsize(4xl)
'					STY				S_D					S_2					SD2
'l_ESI_CON: range(-4,1)	range(-5,1)			range(-4,1)			range(-5,1)
'l_ESI_IND:   range(-8,1)  	range(-7,1)  		range(-6,1)			range(-7,1)
'spread:		  range(-1.2,1.2)	range(-1.2,1.2) range(-1,1)	range(-0.6,0.6)
'gfcf1_pc:       range(-8,4) 	range(-14,4)		range(-10,4)		range(-14,4)
'pfce1_pc      range(-4,1) 	range(-5,1)			range(-4,1)		      range(-3,1)
'y_pc:		       range(-4,2)	range(-4,2)			 range(-4,2)		 range(-4,2)
'profit   		  range(-.06,0.01) 
{%FIG}_{%name}_{%IDC}.axis(l) grid zeroline  range(!min,!max)
{%FIG}_{%name}_{%IDC}.legend(OFF,INBOX,B)
{%FIG}_{%name}_{%IDC}.SETOBSLABEL(BLANK) "2010" "2011" "2012" "2013"' "5"
{%FIG}_{%name}_{%IDC}.options backfade(none) backcolor(white)
{%FIG}_{%name}_{%IDC}.AXIS OVERLAP		
rename {%FIG}_{%name}_{%IDC} fig_{%name}_{%IDC}_{%MODEL3}
NEXT
delete {%VAR_to_PLOT}{%IDC}_0m {%VAR_to_PLOT}{%IDC}_0l {%VAR_to_PLOT}{%IDC}_0h {%VAR_to_PLOT}{%IDC}_ps0m {%VAR_to_PLOT}{%IDC}_ps0l {%VAR_to_PLOT}{%IDC}_ps0h
NEXT


