Page 1 of 1

policy frontier

PostPosted: Wed Apr 29, 2015 10:27 pm
by inani2011
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

Re: policy frontier

PostPosted: Fri May 01, 2015 6:34 pm
by jpfeifer