SMPL  2009  2013
PAGESELECT TIMESERIES
'set variables
%MODEL = "AP_SD2" 	' EB_STY 	EB_S_D		EB_S_2		EB_SD2
%MODEL3 = "EBTBSD2"	'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" 
%name="EBTB"
%fig="fig"

FOR %IDC {%LIST}

	delete {%FIG}_{%name}_{%IDC}*
	'if min(IMF_TOT_IMP{%IDC})<0
	graph {%FIG}_{%name}_{%IDC}.bar  IMF_TOT_IMP{%IDC}*IMF_EB{%IDC}  IMF_TOT_ATOT{%IDC}*IMF_EB{%IDC}    IMF_TOT_IMP{%IDC}*IMF_TB{%IDC} IMF_TOT_ATOT{%IDC}*IMF_TB{%IDC}
'{%FIG}_{%name}_{%IDC}.option linepat 
{%FIG}_{%name}_{%IDC}.elem(1) fillcolor(BLUE) 
{%FIG}_{%name}_{%IDC}.elem(2) fillcolor(@RGB(206,238,255)) fillhatch(4)
{%FIG}_{%name}_{%IDC}.elem(3) fillcolor(RED)  
{%FIG}_{%name}_{%IDC}.elem(4) fillcolor(@RGB(255,217,217)) fillhatch(4)

'{%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(0,6.5)
{%FIG}_{%name}_{%IDC}.legend(OFF,INBOX,B)
{%FIG}_{%name}_{%IDC}.SETOBSLABEL(BLANK) "2009" "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
fig_{%name}_deu.addtext(t,font(15))  "DEU - Plan"
fig_{%name}_esp.addtext(t,font(15))  "ESP - Plan"
fig_{%name}_fra.addtext(t,font(15))  "FRA - Plan"
fig_{%name}_gbr.addtext(t,font(15))  "GBR - Plan"
fig_{%name}_irl.addtext(t,font(15))  "IRL- Plan"
fig_{%name}_ita.addtext(t,font(15))  "ITA - Plan"
fig_{%name}_prt.addtext(t,font(15))  "PRT - Plan"
fig_{%name}_usa.addtext(t,font(15))  "USA - Plan"
fig_{%name}_dnk.addtext(t,font(15))  "DNK - Plan"
fig_{%name}_aut.addtext(t,font(15))  "AUT - Plan"
fig_{%name}_bel.addtext(t,font(15))  "BEL - Plan"
'fig_{%name}_nld.addtext(t,font(15))  "NLD - Plan"


