dsample

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.

dsample

Postby monetarist » Sun Mar 08, 2009 3:59 pm

Dear all,

I have a little problem with dsample.

E.g. if I use it like:

// Adapted from Jesus Fernandez-Villaverde, Basic RBC Model with Monopolistic Competion Philadelphia, March 3, 2005

var y c k i l w r;
varexo z;
parameters beta psi delta alpha sigma epsilon;

alpha = 0.33;
beta = 0.99;
delta = 0.023;
psi = 1.75;
sigma = (0.007/(1-alpha));
epsilon = 10;

model;
(1/c) = beta*(1/c(+1))*(1+r(+1)-delta);
psi*c/(1-l) = w;
c+i = y;
y = (k(-1)^alpha)*(exp(z)*l)^(1-alpha);
w = y*((epsilon-1)/epsilon)*(1-alpha)/l;
r = y*((epsilon-1)/epsilon)*alpha/k(-1);
i = k-(1-delta)*k(-1);
end;

initval;
k = 9;
c = 0.7;
l = 0.3;
w = 2.00;
r = 0.00;
z = 0;
end;

endval;
z = 0.1;
end;

steady;

check;

simul(periods=1000);
dsample 60;
rplot k;

the the figure I obtain is not for the first 60 periods but for 1000 periods.

I try to reduce the time window. However, I get neither an error message nor does matlab display the desired figure.

Best

Chris
monetarist
 
Posts: 7
Joined: Fri Feb 06, 2009 11:32 am

Re: dsample

Postby SébastienVillemot » Mon Mar 09, 2009 10:19 am

Hi

In Dynare 4.0.2 the dsample command is buggy. It will be fixed in the coming 4.0.3 release.

Sébastien
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: dsample

Postby monetarist » Mon Mar 09, 2009 10:54 am

Thank you.

So I'll try it with an older version.

Best regards,

Chris
monetarist
 
Posts: 7
Joined: Fri Feb 06, 2009 11:32 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests