histval or initval? - confused

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.

histval or initval? - confused

Postby gabaligeti » Thu Jul 02, 2009 3:06 pm

Hi!

I've just begun learning dynare, and i'dont exactly understand the difference between histval and initval in the case of deterministic modells.
For example, i'd like to simulate the basic acceletar-multiplicator modell of Samuelson, here is the code:

Code: Select all
var y c i;

varexo g;

parameters c_a gamma psi;
c_a=1;
gamma=0.5;
psi=1;

model;
c=c_a+gamma*y(-1);
i=gamma*psi*(c-c(-1));
y=i+c+g;
end;

check;

histval;
y(0)=1;
c(0)=0.8;
end;

shocks;
var g;
periods 4:9;
values 5.1;
end;

simul(periods=100);


But it wont work, and i think it needs histval-s too. Please help!

Thanks!
gabaligeti
 
Posts: 1
Joined: Thu Jul 02, 2009 2:56 pm

Return to Dynare help

Who is online

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