Dear all,
I have switched from dynare++ 1.3.3 to 1.3.5 and I have a couple of questions.
1. When I used dynare++ 1.3.3, I didn't need to specify initial values for the variables of varexo. With the same program and by using dynare++ 1.3.5, I have the following error message :
dynare++: warning: initval for <u_a_e> is not finite
Caught Dynare exception: nlsolve.cpp:188: Initial guess does not yield finite residual in NLSolver::solve
So, I'm right by saying that I need now to specify
u_a = 1; in initval, where u_a is the variable in vaexo ??
2. If I run the same programm (named for instance my_pgrm.mod) with the two versions of dynare++, the matrix of results my_pgrm.mat has not the same structure.
Precisely, I have less MULT and AUX variables in dynare++ 1.3.5 than in in dynare++ 1.3.3 and thus, the size of dyn_vars is not the same. In addition, the order of the state variables is not the same in the dyn_state_vars according to the used version.
I don't understand why I have these differences.
Finally, I have a last question which is not related to the version of dynare++ :
3. I would like to simulate my Ramsey model by using the command dynare_simul. Precisely, I'm interested to a stochastic simulation. If I use the dynare_simul help, I have to write
shocks = zeros(nbshock,100)./0; % put NaNs everywhere
r = dynare_simul('your_model.mat',shocks);
and it is stated that
% NaNs and Infs in the matrix are substitued by draws from the normal distribution using the covariance matrix given in the model file.
But in my case, i would like to have always the same random draw. Is it possible to specify a option in order to have the same draw, in the spirit of the command randn('state',12345) ?
When I use
randn('state',12345);
shocks = randn(nbshock,100);
r = dynare_simul('your_model.mat',shocks);
the program is able to run but the rows of vector r are very big value from period 1 to 9, period 10 is infinite and the other periods are zeros...
Thanks a lot for your help.