function [ys,check] = soe1bayes_irfs_steadystate(ys, junk)
global M_;

growth_FR_ss= get_param_by_name('growth_FR_ss');
growth_GER_ss= get_param_by_name('growth_GER_ss');
growth_ROEU_ss= get_param_by_name('growth_ROEU_ss');
growth_JA_ss= get_param_by_name('growth_JA_ss');
growth_US_ss= get_param_by_name('growth_US_ss');
growth_UK_ss= get_param_by_name('growth_UK_ss');
growth_CN_ss= get_param_by_name('growth_CN_ss');
growth_CAN_ss= get_param_by_name('growth_CAN_ss');
growth_LA_ss= get_param_by_name('growth_LA_ss');
growth_AT_ss= get_param_by_name('growth_AT_ss');
growth_NO_ss= get_param_by_name('growth_NO_ss');
growth_SE_ss= get_param_by_name('growth_SE_ss');
growth_CH_ss= get_param_by_name('growth_CH_ss');
growth_DK_ss= get_param_by_name('growth_DK_ss');
growth_IL_ss= get_param_by_name('growth_IL_ss');
growth_LT_ss= get_param_by_name('growth_LT_ss');
growth_LV_ss= get_param_by_name('growth_LV_ss');
growth_BG_ss= get_param_by_name('growth_BG_ss');
growth_HR_ss= get_param_by_name('growth_HR_ss');
growth_TR_ss= get_param_by_name('growth_TR_ss');
growth_EE_ss= get_param_by_name('growth_EE_ss');
pietar_EU_ss= get_param_by_name('pietar_EU_ss');
pietar_JA_ss= get_param_by_name('pietar_JA_ss');
pietar_US_ss= get_param_by_name('pietar_US_ss');
pietar_UK_ss= get_param_by_name('pietar_UK_ss');
pietar_CN_ss= get_param_by_name('pietar_CN_ss');
pietar_CAN_ss= get_param_by_name('pietar_CAN_ss');
pietar_LA_ss= get_param_by_name('pietar_LA_ss');
pietar_AT_ss= get_param_by_name('pietar_AT_ss');
pietar_NO_ss= get_param_by_name('pietar_NO_ss');
pietar_SE_ss= get_param_by_name('pietar_SE_ss');
pietar_CH_ss= get_param_by_name('pietar_CH_ss');
pietar_DK_ss= get_param_by_name('pietar_DK_ss');
pietar_IL_ss= get_param_by_name('pietar_IL_ss');
pietar_LT_ss= get_param_by_name('pietar_LT_ss');
pietar_LV_ss= get_param_by_name('pietar_LV_ss');
pietar_BG_ss= get_param_by_name('pietar_BG_ss');
pietar_HR_ss= get_param_by_name('pietar_HR_ss');
pietar_TR_ss= get_param_by_name('pietar_TR_ss');
pietar_EE_ss= get_param_by_name('pietar_EE_ss');
rr_bar_EU_ss= get_param_by_name('rr_bar_EU_ss');
rr_bar_JA_ss= get_param_by_name('rr_bar_JA_ss');
rr_bar_US_ss= get_param_by_name('rr_bar_US_ss');
rr_bar_UK_ss= get_param_by_name('rr_bar_UK_ss');
rr_bar_CN_ss= get_param_by_name('rr_bar_CN_ss');
rr_bar_CAN_ss= get_param_by_name('rr_bar_CAN_ss');
rr_bar_LA_ss= get_param_by_name('rr_bar_LA_ss');
rr_bar_AT_ss= get_param_by_name('rr_bar_AT_ss');
rr_bar_NO_ss= get_param_by_name('rr_bar_NO_ss');
rr_bar_SE_ss= get_param_by_name('rr_bar_SE_ss');
rr_bar_CH_ss= get_param_by_name('rr_bar_CH_ss');
rr_bar_DK_ss= get_param_by_name('rr_bar_DK_ss');
rr_bar_IL_ss= get_param_by_name('rr_bar_IL_ss');
rr_bar_LT_ss= get_param_by_name('rr_bar_LT_ss');
rr_bar_LV_ss= get_param_by_name('rr_bar_LV_ss');
rr_bar_BG_ss= get_param_by_name('rr_bar_BG_ss');
rr_bar_HR_ss= get_param_by_name('rr_bar_HR_ss');
rr_bar_TR_ss= get_param_by_name('rr_bar_TR_ss');
rr_bar_EE_ss= get_param_by_name('rr_bar_EE_ss');


w_FR=0.196954863;
w_GER=0.269988471;
w_ROEU=0.5330566;

growth_EU_ss=w_FR*growth_FR_ss+w_GER*growth_GER_ss+w_ROEU*growth_ROEU_ss;

% because of that crapy (i am sorry) Koopman&durbin stuff, which doesn't
% take into account cointagration of unit-root variables, we initialize
% all unit root variables to the first observation

data3ctry;


%try;LZ_EU=LZ_EU(1);end;
%try;LCPI_EU=LCPI_EU(1);end;
%try;LZ_FR=LZ_FR(1);end;
try;LGDP_FR=LGDP_FR(1);end;
try;LCPI_FR=LCPI_FR(1);end;
try;LZ_GER=LZ_GER(1);end;
try;LGDP_GER=LGDP_GER(1);end;
try;LCPI_GER=LCPI_GER(1);end;
%try;LZ_ROEU=LZ_ROEU(1);end;
try;LGDP_ROEU=LGDP_ROEU(1);end;
try;LCPI_ROEU=LCPI_ROEU(1);end;
try;LCPI_US=LCPI_US(1);end;
try;LGDP_US=LGDP_US(1);end;
try;BLT_US=BLT_US(1);end;
try;LZ_JA=LZ_JA(1);end;
try;LGDP_JA=LGDP_JA(1);end;
try;LCPI_JA=LCPI_JA(1);end;
try;LZ_UK=LZ_UK(1);end;
try;LGDP_UK=LGDP_UK(1);end;
try;LCPI_UK=LCPI_UK(1);end;
try;LZ_CN=LZ_CN(1);end;
try;LGDP_CN=LGDP_CN(1);end;
try;LCPI_CN=LCPI_CN(1);end;
try;LZ_CAN=LZ_CAN(1);end;
try;LGDP_CAN=LGDP_CAN(1);end;
try;LCPI_CAN=LCPI_CAN(1);end;
try;LZ_LA=LZ_LA(1);end;
try;LGDP_LA=LGDP_LA(1);end;
try;LCPI_LA=LCPI_LA(1);end;
try;LZ_AT=LZ_AT(1);end;
try;LGDP_AT=LGDP_AT(1);end;
try;LCPI_AT=LCPI_AT(1);end;
try;LZ_NO=LZ_NO(1);end;
try;LGDP_NO=LGDP_NO(1);end;
try;LCPI_NO=LCPI_NO(1);end;
try;LZ_SE=LZ_SE(1);end;
try;LGDP_SE=LGDP_SE(1);end;
try;LCPI_SE=LCPI_SE(1);end;
try;LZ_CH=LZ_CH(1);end;
try;LGDP_CH=LGDP_CH(1);end;
try;LCPI_CH=LCPI_CH(1);end;
try;LZ_DK=LZ_DK(1);end;
try;LGDP_DK=LGDP_DK(1);end;
try;LCPI_DK=LCPI_DK(1);end;
try;LZ_IL=LZ_IL(1);end;
try;LGDP_IL=LGDP_IL(1);end;
try;LCPI_IL=LCPI_IL(1);end;
try;LZ_LT=LZ_LT(1);end;
try;LGDP_LT=LGDP_LT(1);end;
try;LCPI_LT=LCPI_LT(1);end;
try;LZ_LV=LZ_LV(1);end;
try;LGDP_LV=LGDP_LV(1);end;
try;LCPI_LV=LCPI_LV(1);end;
try;LZ_BG=LZ_BG(1);end;
try;LGDP_BG=LGDP_BG(1);end;
try;LCPI_BG=LCPI_BG(1);end;
try;LZ_HR=LZ_HR(1);end;
try;LGDP_HR=LGDP_HR(1);end;
try;LCPI_HR=LCPI_HR(1);end;
try;LZ_TR=LZ_TR(1);end;
try;LGDP_TR=LGDP_TR(1);end;
try;LCPI_TR=LCPI_TR(1);end;
try;LZ_PL=LZ_PL(1);end;
try;LGDP_PL=LGDP_PL(1);end;
try;LCPI_PL=LCPI_PL(1);end;
try;LZ_RO=LZ_RO(1);end;
try;LGDP_RO=LGDP_RO(1);end;
try;LCPI_RO=LCPI_RO(1);end;
try;LZ_HU=LZ_HU(1);end;
try;LGDP_HU=LGDP_HU(1);end;
try;LCPI_HU=LCPI_HU(1);end;
try;LZ_CZ=LZ_CZ(1);end;
try;LGDP_CZ=LGDP_CZ(1);end;
try;LCPI_CZ=LCPI_CZ(1);end;


LZ_FR=LZ_GER+LCPI_GER-LCPI_FR;
LZ_ROEU=LZ_GER+LCPI_GER-LCPI_ROEU;

try;LZ_E_US = LZ_US;end;
try;LZ_BAR_US = LZ_US;end;
try;LZ_GAP_US = 0;end;
try;BLT_BAR_US = BLT_US;end;
RR_BAR_US = rr_bar_US_ss;
RR_US = RR_BAR_US;
RS_US = RR_BAR_US+pietar_US_ss;
LGDP_BAR_US = LGDP_US;
PIE_US     = pietar_US_ss;
PIE4_US    = pietar_US_ss;
E4_PIE4_US    = pietar_US_ss;
PIETAR_US    = pietar_US_ss;
Y_US       = 0;
G_US  = growth_US_ss;
E1_Y_US    = 0;
E1_PIE_US = pietar_US_ss;
GROWTH_US = growth_US_ss; 
GROWTH4_US = growth_US_ss;
GROWTH_BAR_US = growth_US_ss;
GROWTH4_BAR_US = growth_US_ss;
E_US=0; 
E2_US=0;
E1_Y_US = 0;
DRS_US = 0;

LCPI_EU=w_GER*LCPI_GER(1)+w_FR*LCPI_FR(1)+w_ROEU*LCPI_ROEU(1);
LGDP_EU=w_GER*LGDP_GER(1)+w_FR*LGDP_FR(1)+w_ROEU*LGDP_ROEU(1);
LZ_EU=LZ_GER+LCPI_GER-LCPI_EU;
GROWTH_EU = growth_EU_ss;
GROWTH4_EU = growth_EU_ss; 

try;LZ_E_EU = LZ_EU;end;
try;LZ_BAR_EU = LZ_EU;end;
try;LZ_GAP_EU = 0;end;
RR_BAR_EU = rr_bar_EU_ss;
RR_EU = RR_BAR_EU;
RS_EU  = RR_BAR_EU+pietar_EU_ss;
PIE_EU     = pietar_EU_ss;
PIE4_EU    = pietar_EU_ss;
PIETAR_EU    = pietar_EU_ss;
Y_EU       = 0;
G_EU  = growth_EU_ss;
DRS_EU = 0;


RR_FR = RR_BAR_EU;
LGDP_BAR_FR = LGDP_FR;
PIE_FR  = pietar_EU_ss;
PIE4_FR = pietar_EU_ss;
E4_PIE4_FR = pietar_EU_ss;
PIETAR_FR = pietar_EU_ss;
Y_FR = 0;
G_FR = growth_FR_ss;
GROWTH_FR = growth_FR_ss;
GROWTH4_FR = growth_FR_ss; 
GROWTH_BAR_FR = growth_FR_ss; 
GROWTH4_BAR_FR = growth_FR_ss; 
E1_PIE_FR =pietar_EU_ss;
E1_Y_FR = 0;

RR_GER = RR_BAR_EU;
LGDP_BAR_GER = LGDP_GER;
PIE_GER  = pietar_EU_ss;
PIE4_GER = pietar_EU_ss;
E4_PIE4_GER = pietar_EU_ss;
PIETAR_GER = pietar_EU_ss;
Y_GER = 0;
G_GER = growth_GER_ss;
GROWTH_GER = growth_GER_ss;
GROWTH4_GER = growth_GER_ss; 
GROWTH_BAR_GER = growth_GER_ss; 
GROWTH4_BAR_GER = growth_GER_ss; 
E1_PIE_GER =pietar_EU_ss;;
E1_Y_GER = 0;


RR_ROEU = RR_BAR_EU;
LGDP_BAR_ROEU = LGDP_ROEU;
PIE_ROEU  = pietar_EU_ss;
PIE4_ROEU = pietar_EU_ss;
E4_PIE4_ROEU = pietar_EU_ss;
PIETAR_ROEU = pietar_EU_ss;
Y_ROEU = 0;
G_ROEU = growth_ROEU_ss;
GROWTH_ROEU = growth_ROEU_ss;
GROWTH4_ROEU = growth_ROEU_ss; 
GROWTH_BAR_ROEU = growth_ROEU_ss; 
GROWTH4_BAR_ROEU = growth_ROEU_ss; 
E1_PIE_ROEU =pietar_EU_ss;;
E1_Y_ROEU = 0;


LGDP_BAR_DIFF_EU = w_FR*G_FR/4+w_GER*G_GER/4+w_ROEU*G_ROEU/4;

try;LZ_E_JA = LZ_JA;end;
try;LZ_BAR_JA = LZ_JA;end;
try;LZ_GAP_JA = 0;end;
RR_BAR_JA = rr_bar_JA_ss;
RR_JA = RR_BAR_JA;
RS_JA  = RR_BAR_JA+pietar_JA_ss;
LGDP_BAR_JA = LGDP_JA;
PIE_JA     = pietar_JA_ss;
PIE4_JA    = pietar_JA_ss;
E4_PIE4_JA    = pietar_JA_ss;
PIETAR_JA    = pietar_JA_ss;
Y_JA       = 0;
G_JA  = growth_JA_ss;
E1_Y_JA    = 0;
E1_PIE_JA = pietar_JA_ss;
GROWTH_JA = growth_JA_ss; 
GROWTH4_JA = growth_JA_ss;
GROWTH_BAR_JA = growth_JA_ss;
GROWTH4_BAR_JA = growth_JA_ss;
DRS_JA = 0;


try;LZ_E_UK = LZ_UK;end;
try;LZ_BAR_UK = LZ_UK;end;
try;LZ_GAP_UK = 0;end;
RR_BAR_UK = rr_bar_UK_ss;
RR_UK = RR_BAR_UK;
RS_UK  = RR_BAR_UK+pietar_UK_ss;
LGDP_BAR_UK = LGDP_UK;
PIE_UK     = pietar_UK_ss;
PIE4_UK    = pietar_UK_ss;
E4_PIE4_UK    = pietar_UK_ss;
PIETAR_UK    = pietar_UK_ss;
Y_UK       = 0;
G_UK  = growth_UK_ss;
E1_Y_UK    = 0;
E1_PIE_UK = pietar_UK_ss;
GROWTH_UK = growth_UK_ss; 
GROWTH4_UK = growth_UK_ss;
GROWTH_BAR_UK = growth_UK_ss;
GROWTH4_BAR_UK = growth_UK_ss;
DRS_UK = 0;



try;LZ_E_CN = LZ_CN;end;
try;LZ_BAR_CN = LZ_CN;end;
try;LZ_GAP_CN = 0;end;
RR_BAR_CN = rr_bar_CN_ss;
RR_CN = RR_BAR_CN;
RS_CN  = RR_BAR_CN+pietar_CN_ss;
LGDP_BAR_CN = LGDP_CN;
PIE_CN     = pietar_CN_ss;
PIE4_CN    = pietar_CN_ss;
E4_PIE4_CN    = pietar_CN_ss;
PIETAR_CN    = pietar_CN_ss;
Y_CN       = 0;
G_CN  = growth_CN_ss;
E1_Y_CN    = 0;
E1_PIE_CN = pietar_CN_ss;
GROWTH_CN = growth_CN_ss; 
GROWTH4_CN = growth_CN_ss;
GROWTH_BAR_CN = growth_CN_ss;
GROWTH4_BAR_CN = growth_CN_ss;
DRS_CN = 0;

try;LZ_E_CAN = LZ_CAN;end;
try;LZ_BAR_CAN = LZ_CAN;end;
try;LZ_GAP_CAN = 0;end;
RR_BAR_CAN = rr_bar_CAN_ss;
RR_CAN = RR_BAR_CAN;
RS_CAN  = RR_BAR_CAN+pietar_CAN_ss;
LGDP_BAR_CAN = LGDP_CAN;
PIE_CAN     = pietar_CAN_ss;
PIE4_CAN    = pietar_CAN_ss;
E4_PIE4_CAN    = pietar_CAN_ss;
PIETAR_CAN    = pietar_CAN_ss;
Y_CAN       = 0;
G_CAN  = growth_CAN_ss;
E1_Y_CAN    = 0;
E1_PIE_CAN = pietar_CAN_ss;
GROWTH_CAN = growth_CAN_ss; 
GROWTH4_CAN = growth_CAN_ss;
GROWTH_BAR_CAN = growth_CAN_ss;
GROWTH4_BAR_CAN = growth_CAN_ss;
DRS_CAN = 0;

try;LZ_E_LA = LZ_LA;end;
try;LZ_BAR_LA = LZ_LA;end;
try;LZ_GAP_LA = 0;end;
RR_BAR_LA = rr_bar_LA_ss;
RR_LA = RR_BAR_LA;
RS_LA  = RR_BAR_LA+pietar_LA_ss;
LGDP_BAR_LA = LGDP_LA;
PIE_LA     = pietar_LA_ss;
PIE4_LA    = pietar_LA_ss;
E4_PIE4_LA    = pietar_LA_ss;
PIETAR_LA    = pietar_LA_ss;
Y_LA       = 0;
G_LA  = growth_LA_ss;
E1_Y_LA    = 0;
E1_PIE_LA = pietar_LA_ss;
GROWTH_LA = growth_LA_ss; 
GROWTH4_LA = growth_LA_ss;
GROWTH_BAR_LA = growth_LA_ss;
GROWTH4_BAR_LA = growth_LA_ss;
DRS_LA = 0;

try;LZ_E_AT = LZ_AT;end;
try;LZ_BAR_AT = LZ_AT;end;
try;LZ_GAP_AT = 0;end;
RR_BAR_AT = rr_bar_AT_ss;
RR_AT = RR_BAR_AT;
RS_AT  = RR_BAR_AT+pietar_AT_ss;
LGDP_BAR_AT = LGDP_AT;
PIE_AT     = pietar_AT_ss;
PIE4_AT    = pietar_AT_ss;
E4_PIE4_AT    = pietar_AT_ss;
PIETAR_AT    = pietar_AT_ss;
Y_AT       = 0;
G_AT  = growth_AT_ss;
E1_Y_AT    = 0;
E1_PIE_AT = pietar_AT_ss;
GROWTH_AT = growth_AT_ss; 
GROWTH4_AT = growth_AT_ss;
GROWTH_BAR_AT = growth_AT_ss;
GROWTH4_BAR_AT = growth_AT_ss;
DRS_AT = 0;

try;LZ_E_NO = LZ_NO;end;
try;LZ_BAR_NO = LZ_NO;end;
try;LZ_GAP_NO = 0;end;
RR_BAR_NO = rr_bar_NO_ss;
RR_NO = RR_BAR_NO;
RS_NO  = RR_BAR_NO+pietar_NO_ss;
LGDP_BAR_NO = LGDP_NO;
PIE_NO     = pietar_NO_ss;
PIE4_NO    = pietar_NO_ss;
E4_PIE4_NO    = pietar_NO_ss;
PIETAR_NO    = pietar_NO_ss;
Y_NO       = 0;
G_NO  = growth_NO_ss;
E1_Y_NO    = 0;
E1_PIE_NO = pietar_NO_ss;
GROWTH_NO = growth_NO_ss; 
GROWTH4_NO = growth_NO_ss;
GROWTH_BAR_NO = growth_NO_ss;
GROWTH4_BAR_NO = growth_NO_ss;
DRS_NO = 0;

try;LZ_E_SE = LZ_SE;end;
try;LZ_BAR_SE = LZ_SE;end;
try;LZ_GAP_SE = 0;end;
RR_BAR_SE = rr_bar_SE_ss;
RR_SE = RR_BAR_SE;
RS_SE  = RR_BAR_SE+pietar_SE_ss;
LGDP_BAR_SE = LGDP_SE;
PIE_SE     = pietar_SE_ss;
PIE4_SE    = pietar_SE_ss;
E4_PIE4_SE    = pietar_SE_ss;
PIETAR_SE    = pietar_SE_ss;
Y_SE       = 0;
G_SE  = growth_SE_ss;
E1_Y_SE    = 0;
E1_PIE_SE = pietar_SE_ss;
GROWTH_SE = growth_SE_ss; 
GROWTH4_SE = growth_SE_ss;
GROWTH_BAR_SE = growth_SE_ss;
GROWTH4_BAR_SE = growth_SE_ss;
DRS_SE = 0;

try;LZ_E_CH = LZ_CH;end;
try;LZ_BAR_CH = LZ_CH;end;
try;LZ_GAP_CH = 0;end;
RR_BAR_CH = rr_bar_CH_ss;
RR_CH = RR_BAR_CH;
RS_CH  = RR_BAR_CH+pietar_CH_ss;
LGDP_BAR_CH = LGDP_CH;
PIE_CH     = pietar_CH_ss;
PIE4_CH    = pietar_CH_ss;
E4_PIE4_CH    = pietar_CH_ss;
PIETAR_CH    = pietar_CH_ss;
Y_CH       = 0;
G_CH  = growth_CH_ss;
E1_Y_CH    = 0;
E1_PIE_CH = pietar_CH_ss;
GROWTH_CH = growth_CH_ss; 
GROWTH4_CH = growth_CH_ss;
GROWTH_BAR_CH = growth_CH_ss;
GROWTH4_BAR_CH = growth_CH_ss;
DRS_CH = 0;

try;LZ_E_DK = LZ_DK;end;
try;LZ_BAR_DK = LZ_DK;end;
try;LZ_GAP_DK = 0;end;
RR_BAR_DK = rr_bar_DK_ss;
RR_DK = RR_BAR_DK;
RS_DK  = RR_BAR_DK+pietar_DK_ss;
LGDP_BAR_DK = LGDP_DK;
PIE_DK     = pietar_DK_ss;
PIE4_DK    = pietar_DK_ss;
E4_PIE4_DK    = pietar_DK_ss;
PIETAR_DK    = pietar_DK_ss;
Y_DK       = 0;
G_DK  = growth_DK_ss;
E1_Y_DK    = 0;
E1_PIE_DK = pietar_DK_ss;
GROWTH_DK = growth_DK_ss; 
GROWTH4_DK = growth_DK_ss;
GROWTH_BAR_DK = growth_DK_ss;
GROWTH4_BAR_DK = growth_DK_ss;
DRS_DK = 0;

try;LZ_E_IL = LZ_IL;end;
try;LZ_BAR_IL = LZ_IL;end;
try;LZ_GAP_IL = 0;end;
RR_BAR_IL = rr_bar_IL_ss;
RR_IL = RR_BAR_IL;
RS_IL  = RR_BAR_IL+pietar_IL_ss;
LGDP_BAR_IL = LGDP_IL;
PIE_IL     = pietar_IL_ss;
PIE4_IL    = pietar_IL_ss;
E4_PIE4_IL    = pietar_IL_ss;
PIETAR_IL    = pietar_IL_ss;
Y_IL       = 0;
G_IL  = growth_IL_ss;
E1_Y_IL    = 0;
E1_PIE_IL = pietar_IL_ss;
GROWTH_IL = growth_IL_ss; 
GROWTH4_IL = growth_IL_ss;
GROWTH_BAR_IL = growth_IL_ss;
GROWTH4_BAR_IL = growth_IL_ss;
DRS_IL = 0;

try;LZ_E_LT = LZ_LT;end;
try;LZ_BAR_LT = LZ_LT;end;
try;LZ_GAP_LT = 0;end;
RR_BAR_LT = rr_bar_LT_ss;
RR_LT = RR_BAR_LT;
RS_LT  = RR_BAR_LT+pietar_LT_ss;
LGDP_BAR_LT = LGDP_LT;
PIE_LT     = pietar_LT_ss;
PIE4_LT    = pietar_LT_ss;
E4_PIE4_LT    = pietar_LT_ss;
PIETAR_LT    = pietar_LT_ss;
Y_LT       = 0;
G_LT  = growth_LT_ss;
E1_Y_LT    = 0;
E1_PIE_LT = pietar_LT_ss;
GROWTH_LT = growth_LT_ss; 
GROWTH4_LT = growth_LT_ss;
GROWTH_BAR_LT = growth_LT_ss;
GROWTH4_BAR_LT = growth_LT_ss;
DRS_LT = 0;

try;LZ_E_LV = LZ_LV;end;
try;LZ_BAR_LV = LZ_LV;end;
try;LZ_GAP_LV = 0;end;
RR_BAR_LV = rr_bar_LV_ss;
RR_LV = RR_BAR_LV;
RS_LV  = RR_BAR_LV+pietar_LV_ss;
LGDP_BAR_LV = LGDP_LV;
PIE_LV     = pietar_LV_ss;
PIE4_LV    = pietar_LV_ss;
E4_PIE4_LV    = pietar_LV_ss;
PIETAR_LV    = pietar_LV_ss;
Y_LV       = 0;
G_LV  = growth_LV_ss;
E1_Y_LV    = 0;
E1_PIE_LV = pietar_LV_ss;
GROWTH_LV = growth_LV_ss; 
GROWTH4_LV = growth_LV_ss;
GROWTH_BAR_LV = growth_LV_ss;
GROWTH4_BAR_LV = growth_LV_ss;
DRS_LV = 0;

try;LZ_E_BG = LZ_BG;end;
try;LZ_BAR_BG = LZ_BG;end;
try;LZ_GAP_BG = 0;end;
RR_BAR_BG = rr_bar_BG_ss;
RR_BG = RR_BAR_BG;
RS_BG  = RR_BAR_BG+pietar_BG_ss;
LGDP_BAR_BG = LGDP_BG;
PIE_BG     = pietar_BG_ss;
PIE4_BG    = pietar_BG_ss;
E4_PIE4_BG    = pietar_BG_ss;
PIETAR_BG    = pietar_BG_ss;
Y_BG       = 0;
G_BG  = growth_BG_ss;
E1_Y_BG    = 0;
E1_PIE_BG = pietar_BG_ss;
GROWTH_BG = growth_BG_ss; 
GROWTH4_BG = growth_BG_ss;
GROWTH_BAR_BG = growth_BG_ss;
GROWTH4_BAR_BG = growth_BG_ss;
DRS_BG = 0;

try;LZ_E_HR = LZ_HR;end;
try;LZ_BAR_HR = LZ_HR;end;
try;LZ_GAP_HR = 0;end;
RR_BAR_HR = rr_bar_HR_ss;
RR_HR = RR_BAR_HR;
RS_HR  = RR_BAR_HR+pietar_HR_ss;
LGDP_BAR_HR = LGDP_HR;
PIE_HR     = pietar_HR_ss;
PIE4_HR    = pietar_HR_ss;
E4_PIE4_HR    = pietar_HR_ss;
PIETAR_HR    = pietar_HR_ss;
Y_HR       = 0;
G_HR  = growth_HR_ss;
E1_Y_HR    = 0;
E1_PIE_HR = pietar_HR_ss;
GROWTH_HR = growth_HR_ss; 
GROWTH4_HR = growth_HR_ss;
GROWTH_BAR_HR = growth_HR_ss;
GROWTH4_BAR_HR = growth_HR_ss;
DRS_HR = 0;

try;LZ_E_TR = LZ_TR;end;
try;LZ_BAR_TR = LZ_TR;end;
try;LZ_GAP_TR = 0;end;
RR_BAR_TR = rr_bar_TR_ss;
RR_TR = RR_BAR_TR;
RS_TR  = RR_BAR_TR+pietar_TR_ss;
LGDP_BAR_TR = LGDP_TR;
PIE_TR     = pietar_TR_ss;
PIE4_TR    = pietar_TR_ss;
E4_PIE4_TR    = pietar_TR_ss;
PIETAR_TR    = pietar_TR_ss;
Y_TR       = 0;
G_TR  = growth_TR_ss;
E1_Y_TR    = 0;
E1_PIE_TR = pietar_TR_ss;
GROWTH_TR = growth_TR_ss; 
GROWTH4_TR = growth_TR_ss;
GROWTH_BAR_TR = growth_TR_ss;
GROWTH4_BAR_TR = growth_TR_ss;
DRS_TR = 0;

try;LZ_E_PL = LZ_PL;end;
try;LZ_BAR_PL = LZ_PL;end;
try;LZ_GAP_PL = 0;end;
RR_BAR_PL = rr_bar_EE_ss;
RR_PL = RR_BAR_PL;
RS_PL  = RR_BAR_PL+pietar_EE_ss;
LGDP_BAR_PL = LGDP_PL;
PIE_PL     = pietar_EE_ss;
PIE4_PL    = pietar_EE_ss;
E4_PIE4_PL    = pietar_EE_ss;
PIETAR_PL    = pietar_EE_ss;
Y_PL       = 0;
G_PL  = growth_EE_ss;
E1_Y_PL    = 0;
E1_PIE_PL = pietar_EE_ss;
GROWTH_PL = growth_EE_ss; 
GROWTH4_PL = growth_EE_ss;
GROWTH_BAR_PL = growth_EE_ss;
GROWTH4_BAR_PL = growth_EE_ss;
DRS_PL = 0;


try;LZ_E_RO = LZ_RO;end;
try;LZ_BAR_RO = LZ_RO;end;
try;LZ_GAP_RO = 0;end;
RR_BAR_RO = rr_bar_EE_ss;
RR_RO = RR_BAR_RO;
RS_RO  = RR_BAR_RO+pietar_EE_ss;
LGDP_BAR_RO = LGDP_RO;
PIE_RO     = pietar_EE_ss;
PIE4_RO    = pietar_EE_ss;
E4_PIE4_RO    = pietar_EE_ss;
PIETAR_RO    = pietar_EE_ss;
Y_RO       = 0;
G_RO  = growth_EE_ss;
E1_Y_RO    = 0;
E1_PIE_RO = pietar_EE_ss;
GROWTH_RO = growth_EE_ss; 
GROWTH4_RO = growth_EE_ss;
GROWTH_BAR_RO = growth_EE_ss;
GROWTH4_BAR_RO = growth_EE_ss;
DRS_RO = 0;

try;LZ_E_HU = LZ_HU;end;
try;LZ_BAR_HU = LZ_HU;end;
try;LZ_GAP_HU = 0;end;
RR_BAR_HU = rr_bar_EE_ss;
RR_HU = RR_BAR_HU;
RS_HU  = RR_BAR_HU+pietar_EE_ss;
LGDP_BAR_HU = LGDP_HU;
PIE_HU     = pietar_EE_ss;
PIE4_HU    = pietar_EE_ss;
E4_PIE4_HU    = pietar_EE_ss;
PIETAR_HU    = pietar_EE_ss;
Y_HU       = 0;
G_HU  = growth_EE_ss;
E1_Y_HU    = 0;
E1_PIE_HU = pietar_EE_ss;
GROWTH_HU = growth_EE_ss; 
GROWTH4_HU = growth_EE_ss;
GROWTH_BAR_HU = growth_EE_ss;
GROWTH4_BAR_HU = growth_EE_ss;
DRS_HU = 0;

try;LZ_E_CZ = LZ_CZ;end;
try;LZ_BAR_CZ = LZ_CZ;end;
try;LZ_GAP_CZ = 0;end;
RR_BAR_CZ = rr_bar_EE_ss;
RR_CZ = RR_BAR_CZ;
RS_CZ  = RR_BAR_CZ+pietar_EE_ss;
LGDP_BAR_CZ = LGDP_CZ;
PIE_CZ     = pietar_EE_ss;
PIE4_CZ    = pietar_EE_ss;
E4_PIE4_CZ    = pietar_EE_ss;
PIETAR_CZ    = pietar_EE_ss;
Y_CZ       = 0;
G_CZ  = growth_EE_ss;
E1_Y_CZ    = 0;
E1_PIE_CZ = pietar_EE_ss;
GROWTH_CZ = growth_EE_ss; 
GROWTH4_CZ = growth_EE_ss;
GROWTH_BAR_CZ = growth_EE_ss;
GROWTH4_BAR_CZ = growth_EE_ss;
DRS_CZ = 0;




% 
FACT_FR =0;
FACT_GER =0;
FACT_ROEU =0;
FACT_JA =0;
FACT_US =0;
FACT_UK =0;
FACT_CN =0;
FACT_CAN =0;
FACT_LA =0;
FACT_AT =0;
FACT_SE =0;
FACT_NO =0;
FACT_CH =0;
FACT_DK =0;
FACT_IL =0;
FACT_LT =0;
FACT_LV =0;
FACT_BG =0;
FACT_HR =0;
FACT_TR =0;
FACT_PL =0;
FACT_RO =0;
FACT_HU =0;
FACT_CZ =0;

% 
REER_M_FR =0 ;
REER_M_GER =0 ;
REER_M_ROEU =0 ;
REER_M_JA = 0 ;
REER_M_US = 0;
REER_M_UK = 0;
REER_M_CN = 0;
REER_M_CAN =0;
REER_M_LA =0;
REER_M_AT =0;
REER_M_SE =0;
REER_M_NO =0;
REER_M_CH =0;
REER_M_DK =0;
REER_M_IL =0;
REER_M_LT =0;
REER_M_LV =0;
REER_M_BG =0;
REER_M_HR =0;
REER_M_TR =0;
REER_M_PL =0;
REER_M_RO =0;
REER_M_HU =0;
REER_M_CZ =0;


% 
REER_T_FR = 0 ;
REER_T_GER = 0 ;
REER_T_ROEU = 0 ;
REER_T_JA = 0 ;
REER_T_US = 0 ;
REER_T_UK = 0 ;
REER_T_CN = 0 ;
REER_T_CAN =0;
REER_T_LA =0;
REER_T_AT =0;
REER_T_SE =0;
REER_T_NO =0;
REER_T_CH =0;
REER_T_DK =0;
REER_T_IL =0;
REER_T_LT =0;
REER_T_LV =0;
REER_T_BG =0;
REER_T_HR =0;
REER_T_TR =0;
REER_T_PL =0;
REER_T_RO =0;
REER_T_HU =0;
REER_T_CZ =0;

%
REER_T_BAR_FR = 0 ;
REER_T_BAR_GER = 0 ;
REER_T_BAR_ROEU = 0 ;
REER_T_BAR_JA = 0 ;
REER_T_BAR_US = 0 ;
REER_T_BAR_UK = 0 ;
REER_T_BAR_CN = 0 ;
REER_T_BAR_C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R_HU 
PIE_HU 
RR_BAR_HU 
RR_HU 
RS_HU 
Y_HU 
LZ_BAR_HU 
LZ_HU 
LZ_E_HU 
LZ_GAP_HU
DRS_CZ 
E1_PIE_CZ 
E1_Y_CZ 
E4_PIE4_CZ 
GROWTH_BAR_CZ 
GROWTH4_BAR_CZ 
GROWTH4_CZ 
GROWTH_CZ 
G_CZ 
LCPI_CZ 
LGDP_BAR_CZ 
LGDP_CZ  
PIE4_CZ 
PIETAR_CZ 
PIE_CZ 
RR_BAR_CZ 
RR_CZ 
RS_CZ 
Y_CZ 
LZ_BAR_CZ 
LZ_CZ 
LZ_E_CZ 
LZ_GAP_CZ
FACT_FR 
FACT_GER 
FACT_ROEU  
FACT_JA 
FACT_US 
FACT_UK 
FACT_CN 
FACT_CAN 
FACT_LA 
FACT_AT 
FACT_NO 
FACT_SE 
FACT_CH 
FACT_DK 
FACT_IL 
FACT_LT 
FACT_LV 
FACT_BG 
FACT_HR 
FACT_TR 
FACT_PL 
FACT_RO 
FACT_HU 
FACT_CZ
REER_M_FR 
REER_M_GER 
REER_M_ROEU 
REER_M_JA 
REER_M_US  
REER_M_UK 
REER_M_CN 
REER_M_CAN 
REER_M_LA 
REER_M_AT 
REER_M_NO 
REER_M_SE 
REER_M_CH 
REER_M_DK 
REER_M_IL 
REER_M_LT 
REER_M_LV 
REER_M_BG 
REER_M_HR 
REER_M_TR 
REER_M_PL 
REER_M_RO 
REER_M_HU 
REER_M_CZ 
REER_T_FR 
REER_T_GER 
REER_T_ROEU 
REER_T_JA 
REER_T_US 
REER_T_UK 
REER_T_CN 
REER_T_CAN 
REER_T_LA 
REER_T_AT 
REER_T_NO 
REER_T_SE 
REER_T_CH 
REER_T_DK 
REER_T_IL 
REER_T_LT 
REER_T_LV 
REER_T_BG 
REER_T_HR 
REER_T_TR 
REER_T_PL 
REER_T_RO 
REER_T_HU 
REER_T_CZ
REER_T_BAR_FR 
REER_T_BAR_GER 
REER_T_BAR_ROEU 
REER_T_BAR_JA 
RE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e_Y_RO 
e_Y_HU 
e_Y_CZ 
LGDP_BARPERM_US 
LGDP_BARPERM_FR 
LGDP_BARPERM_GER 
LGDP_BARPERM_ROEU 
LGDP_BARPERM_JA  
LGDP_BARPERM_UK  
LGDP_BARPERM_CN 
LGDP_BARPERM_CAN 
LGDP_BARPERM_LA 
LGDP_BARPERM_AT 
LGDP_BARPERM_NO 
LGDP_BARPERM_SE 
LGDP_BARPERM_CH 
LGDP_BARPERM_DK 
LGDP_BARPERM_IL 
LGDP_BARPERM_LT 
LGDP_BARPERM_LV 
LGDP_BARPERM_BG 
LGDP_BARPERM_HR 
LGDP_BARPERM_TR 
LGDP_BARPERM_PL 
LGDP_BARPERM_RO 
LGDP_BARPERM_HU 
LGDP_BARPERM_CZ 
LGDP_BARTRANS_US 
LGDP_BARTRANS_FR 
LGDP_BARTRANS_GER 
LGDP_BARTRANS_ROEU 
LGDP_BARTRANS_JA  
LGDP_BARTRANS_UK  
LGDP_BARTRANS_CN 
LGDP_BARTRANS_CAN 
LGDP_BARTRANS_LA 
LGDP_BARTRANS_AT 
LGDP_BARTRANS_NO 
LGDP_BARTRANS_SE 
LGDP_BARTRANS_CH 
LGDP_BARTRANS_DK 
LGDP_BARTRANS_IL 
LGDP_BARTRANS_LT 
LGDP_BARTRANS_LV 
LGDP_BARTRANS_BG 
LGDP_BARTRANS_HR 
LGDP_BARTRANS_TR 
LGDP_BARTRANS_PL 
LGDP_BARTRANS_RO 
LGDP_BARTRANS_HU 
LGDP_BARTRANS_CZ 
RES_FIN_US 
RES_FIN_EU 
RES_FIN_FR 
RES_FIN_GER 
RES_FIN_ROEU 
RES_FIN_JA  
RES_FIN_UK  
RES_FIN_CN 
RES_FIN_CAN 
RES_FIN_LA 
RES_FIN_AT 
RES_FIN_NO 
RES_FIN_SE 
RES_FIN_CH 
RES_FIN_DK 
RES_FIN_IL 
RES_FIN_LT 
RES_FIN_LV 
RES_FIN_BG 
RES_FIN_HR 
RES_FIN_TR 
RES_FIN_PL 
RES_FIN_RO 
RES_FIN_HU 
RES_FIN_CZ 
e_FIN_US 
e_FIN_EU 
e_FIN_FR 
e_FIN_GER 
e_FIN_ROEU 
e_FIN_JA  
e_FIN_UK  
e_FIN_CN 
e_FIN_CAN 
e_FIN_LA 
e_FIN_AT 
e_FIN_NO 
e_FIN_SE 
e_FIN_CH 
e_FIN_DK 
e_FIN_IL 
e_FIN_LT 
e_FIN_LV 
e_FIN_BG 
e_FIN_HR 
e_FIN_TR 
e_FIN_PL 
e_FIN_RO 
e_FIN_HU 
e_FIN_CZ 
RES_FIN_EU_idiosync
];

%%

% RES_PIE_US RES_PIE_EU RES_PIE_FR RES_PIE_GER RES_PIE_ROEU RES_PIE_JA  RES_PIE_UK  RES_PIE_CN RES_PIE_CAN RES_PIE_LA RES_PIE_AT RES_PIE_NO RES_PIE_SE RES_PIE_CH RES_PIE_DK RES_PIE_IL RES_PIE_LT RES_PIE_LV RES_PIE_BG RES_PIE_HR RES_PIE_TR RES_PIE_PL RES_PIE_RO RES_PIE_HU RES_PIE_CZ 
% e_Y_US e_Y_EU e_Y_FR e_Y_GER e_Y_ROEU e_Y_JA  e_Y_UK  e_Y_CN e_Y_CAN e_Y_LA e_Y_AT e_Y_NO e_Y_SE e_Y_CH e_Y_DK e_Y_IL e_Y_LT e_Y_LV e_Y_BG e_Y_HR e_Y_TR e_Y_PL e_Y_RO e_Y_HU e_Y_CZ 
% LGDP_BARPERM_US LGDP_BARPERM_EU LGDP_BARPERM_FR LGDP_BARPERM_GER LGDP_BARPERM_ROEU LGDP_BARPERM_JA  LGDP_BARPERM_UK  LGDP_BARPERM_CN LGDP_BARPERM_CAN LGDP_BARPERM_LA LGDP_BARPERM_AT LGDP_BARPERM_NO LGDP_BARPERM_SE LGDP_BARPERM_CH LGDP_BARPERM_DK LGDP_BARPERM_IL LGDP_BARPERM_LT LGDP_BARPERM_LV LGDP_BARPERM_BG LGDP_BARPERM_HR LGDP_BARPERM_TR LGDP_BARPERM_PL LGDP_BARPERM_RO LGDP_BARPERM_HU LGDP_BARPERM_CZ 
% 
% LGDP_BARTRANS_US LGDP_BARTRANS_EU LGDP_BARTRANS_FR LGDP_BARTRANS_GER LGDP_BARTRANS_ROEU LGDP_BARTRANS_JA  LGDP_BARTRANS_UK  LGDP_BARTRANS_CN LGDP_BARTRANS_CAN LGDP_BARTRANS_LA LGDP_BARTRANS_AT LGDP_BARTRANS_NO LGDP_BARTRANS_SE LGDP_BARTRANS_CH LGDP_BARTRANS_DK LGDP_BARTRANS_IL LGDP_BARTRANS_LT LGDP_BARTRANS_LV LGDP_BARTRANS_BG LGDP_BARTRANS_HR LGDP_BARTRANS_TR LGDP_BARTRANS_PL LGDP_BARTRANS_RO LGDP_BARTRANS_HU LGDP_BARTRANS_CZ 
% RES_FIN_US RES_FIN_EU RES_FIN_FR RES_FIN_GER RES_FIN_ROEU RES_FIN_JA  RES_FIN_UK  RES_FIN_CN RES_FIN_CAN RES_FIN_LA RES_FIN_AT RES_FIN_NO RES_FIN_SE RES_FIN_CH RES_FIN_DK RES_FIN_IL RES_FIN_LT RES_FIN_LV RES_FIN_BG RES_FIN_HR RES_FIN_TR RES_FIN_PL RES_FIN_RO RES_FIN_HU RES_FIN_CZ 
% e_FIN_US e_FIN_EU e_FIN_FR e_FIN_GER e_FIN_ROEU e_FIN_JA  e_FIN_UK  e_FIN_CN e_FIN_CAN e_FIN_LA e_FIN_AT e_FIN_NO e_FIN_SE e_FIN_CH e_FIN_DK e_FIN_IL e_FIN_LT e_FIN_LV e_FIN_BG e_FIN_HR e_FIN_TR e_FIN_PL e_FIN_RO e_FIN_HU e_FIN_CZ 
% RES_FIN_EU_idiosync
%%No! declar list above is wrong because it has 3 endog vars that don't exist:lgdp_bar_trans_eu,lgdp_bar_perm_eu,res_pie_eu.
%%%
%Correct endog var declar list:

%Added EA wide variables:
% LGDP_EU GROWTH_EU GROWTH4_EU RES_Y_EU_idiosync
% 
% RES_PIE_US RES_PIE_FR RES_PIE_GER RES_PIE_ROEU RES_PIE_JA  RES_PIE_UK  RES_PIE_CN RES_PIE_CAN RES_PIE_LA RES_PIE_AT RES_PIE_NO RES_PIE_SE RES_PIE_CH RES_PIE_DK RES_PIE_IL RES_PIE_LT RES_PIE_LV RES_PIE_BG RES_PIE_HR RES_PIE_TR RES_PIE_PL RES_PIE_RO RES_PIE_HU RES_PIE_CZ 
% e_Y_US e_Y_EU e_Y_FR e_Y_GER e_Y_ROEU e_Y_JA  e_Y_UK  e_Y_CN e_Y_CAN e_Y_LA e_Y_AT e_Y_NO e_Y_SE e_Y_CH e_Y_DK e_Y_IL e_Y_LT e_Y_LV e_Y_BG e_Y_HR e_Y_TR e_Y_PL e_Y_RO e_Y_HU e_Y_CZ 
% LGDP_BARPERM_US LGDP_BARPERM_FR LGDP_BARPERM_GER LGDP_BARPERM_ROEU LGDP_BARPERM_JA  LGDP_BARPERM_UK  LGDP_BARPERM_CN LGDP_BARPERM_CAN LGDP_BARPERM_LA LGDP_BARPERM_AT LGDP_BARPERM_NO LGDP_BARPERM_SE LGDP_BARPERM_CH LGDP_BARPERM_DK LGDP_BARPERM_IL LGDP_BARPERM_LT LGDP_BARPERM_LV LGDP_BARPERM_BG LGDP_BARPERM_HR LGDP_BARPERM_TR LGDP_BARPERM_PL LGDP_BARPERM_RO LGDP_BARPERM_HU LGDP_BARPERM_CZ 
% 
% LGDP_BARTRANS_US LGDP_BARTRANS_FR LGDP_BARTRANS_GER LGDP_BARTRANS_ROEU LGDP_BARTRANS_JA  LGDP_BARTRANS_UK  LGDP_BARTRANS_CN LGDP_BARTRANS_CAN LGDP_BARTRANS_LA LGDP_BARTRANS_AT LGDP_BARTRANS_NO LGDP_BARTRANS_SE LGDP_BARTRANS_CH LGDP_BARTRANS_DK LGDP_BARTRANS_IL LGDP_BARTRANS_LT LGDP_BARTRANS_LV LGDP_BARTRANS_BG LGDP_BARTRANS_HR LGDP_BARTRANS_TR LGDP_BARTRANS_PL LGDP_BARTRANS_RO LGDP_BARTRANS_HU LGDP_BARTRANS_CZ 
% RES_FIN_US RES_FIN_EU RES_FIN_FR RES_FIN_GER RES_FIN_ROEU RES_FIN_JA  RES_FIN_UK  RES_FIN_CN RES_FIN_CAN RES_FIN_LA RES_FIN_AT RES_FIN_NO RES_FIN_SE RES_FIN_CH RES_FIN_DK RES_FIN_IL RES_FIN_LT RES_FIN_LV RES_FIN_BG RES_FIN_HR RES_FIN_TR RES_FIN_PL RES_FIN_RO RES_FIN_HU RES_FIN_CZ 
% e_FIN_US e_FIN_EU e_FIN_FR e_FIN_GER e_FIN_ROEU e_FIN_JA  e_FIN_UK  e_FIN_CN e_FIN_CAN e_FIN_LA e_FIN_AT e_FIN_NO e_FIN_SE e_FIN_CH e_FIN_DK e_FIN_IL e_FIN_LT e_FIN_LV e_FIN_BG e_FIN_HR e_FIN_TR e_FIN_PL e_FIN_RO e_FIN_HU e_FIN_CZ 
% 
% RES_FIN_EU_idiosync
%%%
