SMPL 1981 2007 
PAGESELECT TIMESERIES
'set variables
%MODEL = "EB_SD2" 	' EB_STY 	EB_S_D		EB_S_2		EB_SD2
%MODEL2 = "TB_SD2" 	' TB_STY		TB_S_D		TB_S_2		TB_SD2
%MODEL3 = "SD2"	'STY	S_D	S_2	SD2

%MODEL0 = "EB_SD2 TB_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" 
'%LIST ="AUS AUT BEL CAN  DNK FRA GBR IRL JPN PRT USA DEU"  'ESP  ITA
FOR %IDC {%LIST}
		!j=1
		matrix(5,6) rsp_{%VAR}_{%MODEL3}_{%IDC}
		FOR %MOD {%MODEL0}
			FOR !i=1 TO 3	
				FOR !k=1 to 5
				rsp_{%VAR}_{%MODEL3}_{%IDC}(!k,!j) = rsp_{%VAR_to_PLOT}_{%MOD}_{%IDC}(!k,!i)
				NEXT
				!j=!j+1
			NEXT
		NEXT
NEXT

FOR %IDC {%LIST}
%FIG = "FIG1"
FOR %name {%VAR_to_PLOT} 
delete {%FIG}_{%name}_{%IDC}*
freeze({%FIG}_{%name}_{%IDC}) rsp_{%VAR}_{%MODEL3}_{%IDC}.line
{%FIG}_{%name}_{%IDC}.option linepat 
{%FIG}_{%name}_{%IDC}.elem(1) lcolor(BLUE) lpat(dash7) lwidth(0.25)
{%FIG}_{%name}_{%IDC}.elem(3) lcolor(BLUE) lpat(dash7) lwidth(0.25)
{%FIG}_{%name}_{%IDC}.elem(2) lcolor(BLUE) lpat(solid) lwidth(2) SYM(CIRCLE) symbolsize(4xl)
{%FIG}_{%name}_{%IDC}.elem(4) lcolor(RED) 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(-8,10)
{%FIG}_{%name}_{%IDC}.legend(OFF,INBOX,B)
{%FIG}_{%name}_{%IDC}.SETOBSLABEL(BLANK) "0" "1" "2" "3" "4" "5"
{%FIG}_{%name}_{%IDC}.options backfade(none) backcolor(white)
{%FIG}_{%name}_{%IDC}.AXIS OVERLAP		
rename {%FIG}_{%name}_{%IDC} fig_{%name}_{%IDC}_{%MODEL3}
NEXT
NEXT
