Page 1 of 1

No output produced

PostPosted: Mon Feb 22, 2010 7:35 pm
by Fraxinus
Hello everyone,

I just installed Dynare, and I am experiencing a problem with it. When I launch the computation of a simple stochastic model, no ouput appear. Matlab does the preprocessing, computes the equations, and creates the m-files, but then no graphs or any other output whatsoever appears; the last line is "starting MATLAB/Octave computing", and then, nothing happens.

For information, I am running it on Matlab 7.0.1 - but I also tried on Octave, and it does the same thing - on Windows XP.

The code of my model is the following:

var h c y k z i w r;
varexo e_z ;

parameters thetaa, alphaa, betaa, deltaa, rhoo, sigmaa;
thetaa = 3.48 ;
alphaa = 0.33 ;
betaa = 0.984;
deltaa = 0.025;
rhoo = 0.98 ;
sigmaa = 0.0072 ;



model;
thetaa/(1-h) = 1/c*(1-alphaa)*y/h ;
1/c = betaa/c(1)*(alphaa*y(1)/k + 1-deltaa) ;
c + k = exp(z)*k(-1)^alphaa * h^(1-alphaa) + (1-deltaa)*k(-1) ;
y = exp(z)*k(-1)^alphaa * h^(1-alphaa) ;
i = k - (1-deltaa)*k(-1) ;
r = alphaa*y/k(-1) ;
w = (1-alphaa)*y/h ;
z = rhoo*z(-1) + e_z ;
end;

initval;
z = 0;
r = 1/betaa - 1 + deltaa ;
h = 1/(1+thetaa/(1-alphaa)*(1-deltaa*alphaa/r)) ;
c = ((r/alphaa)^(alphaa/(alphaa - 1)) - deltaa*(r/alphaa)^(1/(alphaa - 1)))/(1+thetaa/(1-alphaa)*(1-deltaa*alphaa/r)) ; // c_h = (r/alphaa)^(alphaa/(alphaa - 1)) - deltaa*(r/alphaa)^(1/(alphaa - 1)) ;
k = (r/alphaa)^(1/(alphaa - 1))/(1+thetaa/(1-alphaa)*(1-deltaa*alphaa/r)) ; // k_h = (r/alphaa)^(1/(alphaa - 1))
y = r/alphaa*k ; // y_k = r/alphaa
i = deltaa*k ;
w = (1-alphaa)*y/h ;
end;

return;

shocks;
var e_z; stderr sigmaa;
end;

stoch_simul(irf=60,order=1);

Many thanks for your help!

Re: No output produced

PostPosted: Tue Feb 23, 2010 9:08 am
by jpfeifer
Delete the line with

Code: Select all
return;


as this ends the code execution in this part of the .mod-file. Everything after this point is ignored.

Johannes