function [ys,check] = soe1bayes_steadystate(ys, junk)
global M_;
growth_EU_ss= get_param_by_name('growth_EU_ss');
growth_JA_ss= get_param_by_name('growth_JA_ss');
growth_US_ss= get_param_by_name('growth_US_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');
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');



% 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; LPOIL_US=LPOIL_US(1); end;
try; LRPOIL_US=LPOIL_US(1) - LCPI_US(1); end;
LRPOILC_US = 0;
% LRPOIL_BAR_US = LRPOIL_US;
% PIE_RPOIL_US = 4*(LRPOIL_US(2)-LRPOIL_US(1));
% PIE_RPOIL_EU = PIE_RPOIL_US;
% PIE_RPOIL_JA = PIE_RPOIL_US;
LRPOIL_BAR_US = LRPOIL_US;
PIE_RPOIL_US = 0;
PIE_RPOIL_EU = 0;
PIE_RPOIL_JA = 0;
RPOIL_GAP_EU = 0;
RPOIL_GAP_US = 0;
RPOIL_GAP_JA = 0;
try;LZ_EU=LZ_EU(1);end;
try;LGDP_EU=LGDP_EU(1);end;
try;UNR_EU=UNR_EU(1);end;
try;LCPI_EU=LCPI_EU(1);end;
try;UNR_US=UNR_US(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;UNR_JA=UNR_JA(1);end;
try;LCPI_JA=LCPI_JA(1);end;
try;LZ_E_EU = LZ_EU;end
try;LZ_BAR_EU = LZ_EU;end
try;LZ_GAP_EU = 0;end
try;BLT_BAR_EU = BLT_EU;end
RR_EU = rr_bar_EU_ss;
RR_BAR_EU = rr_bar_EU_ss;
UNR_GAP_EU = 0;
UNR_BAR_EU = UNR_EU;
LGDP_BAR_EU = LGDP_EU;
PIE_EU     = pietar_EU_ss;
PIE4_EU    = pietar_EU_ss;
E4_PIE4_EU    = pietar_EU_ss;
PIETAR_EU    = pietar_EU_ss;
Y_EU       = 0;
RS_EU      = rr_bar_EU_ss+pietar_EU_ss;
G_EU  = growth_EU_ss;
E4_PIE_EU4 = pietar_EU_ss;
E1_Y_EU    = 0;
E1_PIE_EU = pietar_EU_ss;
UNR_G_EU = 0;
GROWTH_EU = growth_EU_ss; 
GROWTH4_EU = growth_EU_ss;
GROWTH4_BAR_EU = growth_EU_ss;
GROWTH_BAR_EU = growth_EU_ss;
E_EU=0; 
E2_EU=0;
E4_PIE4 = pietar_EU_ss;
E1_Y_EU = 0;
UNR_G_EU = 0;
DRS_EU = 0;
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_US = rr_bar_US_ss;
RR_BAR_US = rr_bar_US_ss;
UNR_GAP_US = 0;
UNR_BAR_US = UNR_US;
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;
RS_US      = rr_bar_US_ss+pietar_US_ss;
G_US  = growth_US_ss;
E4_PIE_US4 = pietar_US_ss;
E1_Y_US    = 0;
E1_PIE_US = pietar_US_ss;
UNR_G_US = 0;
GROWTH_US = growth_US_ss; 
GROWTH4_US = growth_US_ss;
GROWTH4_BAR_US = growth_US_ss;
GROWTH_BAR_US = growth_US_ss;
E_US=0; 
E2_US=0;
E4_PIE4 = pietar_US_ss;
E1_Y_US = 0;
UNR_G_US = 0;
DRS_US = 0;
try;LZ_E_JA = LZ_JA;end
try;LZ_BAR_JA = LZ_JA;end
try;LZ_GAP_JA = 0;end
try;BLT_BAR_JA = BLT_JA;end
RR_JA = rr_bar_JA_ss;
RR_BAR_JA = rr_bar_JA_ss;
UNR_GAP_JA = 0;
UNR_BAR_JA = UNR_JA;
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;
RS_JA      = rr_bar_JA_ss+pietar_JA_ss;
G_JA  = growth_JA_ss;
E4_PIE_JA4 = pietar_JA_ss;
E1_Y_JA    = 0;
E1_PIE_JA = pietar_JA_ss;
UNR_G_JA = 0;
GROWTH_JA = growth_JA_ss; 
GROWTH4_JA = growth_JA_ss;
GROWTH4_BAR_JA = growth_JA_ss;
GROWTH_BAR_JA = growth_JA_ss;
E_JA=0; 
E2_JA=0;
E4_PIE4 = pietar_JA_ss;
E1_Y_JA = 0;
UNR_G_JA = 0;
DRS_JA = 0;
% 
FACT_EU =0;
FACT_JA =0;
FACT_US =0;
% LZ_US =0;
% 
REER_M_EU =0 ;
REER_M_JA = 0 ;
REER_M_US = 0;
% 
REER_T_EU = 0 ;
REER_T_JA = 0 ;
REER_T_US = 0 ;

REER_T_BAR_EU = 0 ;
REER_T_BAR_JA = 0 ;
REER_T_BAR_US = 0 ;


check = 0;
ys = [
BLT_BAR_US
BLT_US
DRS_EU
DRS_JA
DRS_US
E1_PIE_EU
E1_PIE_JA
E1_PIE_US
E1_Y_EU
E1_Y_JA
E1_Y_US
E2_US
E4_PIE4_EU
E4_PIE4_JA
E4_PIE4_US
E_US
GROWTH4_BAR_EU
GROWTH4_BAR_JA
GROWTH4_BAR_US
GROWTH4_EU
GROWTH4_JA
GROWTH4_US
GROWTH_EU
GROWTH_JA
GROWTH_US
G_EU
G_JA
G_US
LCPI_EU
LCPI_JA
LCPI_US
LGDP_BAR_EU
LGDP_BAR_JA
LGDP_BAR_US
LGDP_EU
LGDP_JA
LGDP_US
LZ_BAR_EU
LZ_BAR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