Hello to all,
I calibrated a simple 3-equation DSGE and using stochastic simulations I noticed that the output (the empirical moments and the oo_.endo_simul) is always the same; shouldn’t they be different each time I run the code?
% Simple NKM Model
var y, i, r, pi, g, u,v;
varexo eps_g, eps_u, eps_v;
% Parameters
parameters beta, sigma, eta, omega, rhog,rhou,rhov ,phipi, phiy;
beta = 0.99;
sigma = 1;
eta = 1;
omega= 0.8;
rhog = 0.8;
rhou = 0.5;
rhov = 0.5;
phipi= 1.5;
phiy = 0;
% Model equations
model (linear);
#kappa= (sigma+eta)*(1-omega)*(1-beta*omega)/omega;
y=y(+1)-(1/sigma)*(i-pi(+1))+g;
pi= beta*pi(+1)+kappa*y+u;
i=phipi*pi+phiy*y+v;
r=i-pi(+1);
g = rhog * g(-1) + eps_g;
u = rhou * u(-1) + eps_u;
v = rhov * v(-1) + eps_v;
end;
steady;
shocks;
var eps_g; stderr 1;
var eps_u; stderr 1;
var eps_v; stderr 1;
end;
stoch_simul(periods=1000);
oo_.endo_simul
I am using Octave in Mac.
Thank you very much.