load shocks in a perfect foresight model

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.

load shocks in a perfect foresight model

Postby Ke » Thu Apr 20, 2006 5:58 pm

Hi Michael and everyone,

I have a similar question as maile. The model is a perfect foresight one with 4 exogenous driving forces. 3 of them have 35 observations, 1 has 34 observations. Other than that, no more shocks (up to infinite future).

I wrote

shocks(shocks_file=shocks1);
var s1;
periods 1;
values 0;
var s3;
periods 1;
values 1.1;
var s3;
periods 1;
values 0.9;
var s4;
periods 1;
values 1.2;
end;

but it returns "Input argument "dyn_data_01" is undefined."
shocks1.mat contains all the observations of the shocks (driving forces).

If I input shocks period-by-period, it works!

Also, I'm wondering what's the algorithm that dynare use when it solves perfect foresight models? Forward shooting or reverse shooting?

If it is forward shooting, should I worry about the accuracy of the solution, in the sense that as we move along the stable saddle path from the initial value towards the steady state, the dynamics of the system actually drive variables away from the saddle path. Overtime it maybe quite off the true solution since computation errors are accumulated. For a RBC type of model, will this cause a problem?

Thanks a lot!
Ke
Ke
 
Posts: 2
Joined: Thu Apr 20, 2006 5:31 pm

Postby MichelJuillard » Sun Apr 30, 2006 8:47 am

this syntax should work with the snapshot of version 3

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby Ke » Sun Apr 30, 2006 11:22 pm

hi Michel,

Thank you for the kind remind. I did forget to update those files.

cheers,
Ke
Ke
 
Posts: 2
Joined: Thu Apr 20, 2006 5:31 pm


Return to Dynare help

Who is online

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