"product of two variables" type welfare loss function

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.

"product of two variables" type welfare loss function

Postby sleep_too_much » Sun Jan 26, 2014 5:55 am

Dear all,

Please provide me an insight on dynare coding problem. I'm doing an optimal fiscal and monetary policy thing with Ramsey policy problem, and my welfare loss function seems a linear quadratic but includes one term that is represented as a product of two different variables, such as a product of output gap and government spending gap, like "y*g". In simple dynare code for optimal policy rule in general case, we can simply use osr_params, but if i put the special case, like "y*g" the dynare doesn't work well. I know in "optim_weights" term every variables should be put as non quadratic term, but I still don't know how to input "y*g" type quadratic term in the dynare code.

Thanks!
sleep_too_much
 
Posts: 3
Joined: Sun Jan 26, 2014 5:46 am

Re: "product of two variables" type welfare loss function

Postby MichelJuillard » Tue Jan 28, 2014 10:45 am

The specification of the loss function is done with osr_weights and not osr_params.

If you want to include cross products, you should write something like
Code: Select all
optim_weights;
inflation 1;
y 1;
inflation, y 0.1;
end;


Best,

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

Re: "product of two variables" type welfare loss function

Postby sleep_too_much » Tue Jan 28, 2014 10:58 pm

I really appreciate for your help, Michel.
sleep_too_much
 
Posts: 3
Joined: Sun Jan 26, 2014 5:46 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests