policy frontier

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.

policy frontier

Postby inani2011 » Wed Apr 29, 2015 10:27 pm

Hi, there.

I am trying to draw a policy frontier (or Taylor curve) by assuming loss function as "lambda * var(inflation) + (1-lambda) * var(y)".
(I was reading a past post which had a similar question.
viewtopic.php?f=2&t=2181)

The code that I wrote is:

lambda = 0:0.05:1;

optim_weights;

for SS=1:length(lambda);
lambda_SS = lambda(SS);
y, infl lambda_SS;

if info;
disp(['Computation fails for lambda_SS = ' num2str(lambda_SS)]);
else
moments(:,SS)=diag(oo_.var);
end;

end;

osr_params rhoib piinfl piy;
osr;

But, it fails to run.
(ERROR: bank12_test.mod: line 467, col 7: syntax error, unexpected EQUAL
line 467 is "for SS=1:length(lambda);")
I don't know why it doesn't run.

Any helps will be really appreciated.

Best,
Inhwan
inani2011
 
Posts: 1
Joined: Wed Apr 29, 2015 10:18 pm

Re: policy frontier

Postby jpfeifer » Fri May 01, 2015 6:34 pm

------------
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 7 guests