No output produced

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

No output produced

Postby Fraxinus » Mon Feb 22, 2010 7:35 pm

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!
Fraxinus
 
Posts: 1
Joined: Mon Feb 22, 2010 7:06 pm

Re: No output produced

Postby jpfeifer » Tue Feb 23, 2010 9:08 am

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
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 13 guests