Model (linear) and Moments

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.

Model (linear) and Moments

Postby petros_varth » Fri Feb 05, 2010 6:21 pm

Hi all,

When you introduce a model in log-linear form, the theoretical moments are for the log of the endogenous variables??
And if this is the case,how you can take from these theoretical moments the moments of the levels??

Thanks
petros_varth
 
Posts: 45
Joined: Wed Sep 30, 2009 5:35 pm

Re: Model (linear) and Moments

Postby StephaneAdjemian » Sat Feb 20, 2010 3:57 pm

Hi,

petros_varth wrote:When you introduce a model in log-linear form, the theoretical moments are for the log of the endogenous variables??


Yes.

petros_varth wrote:And if this is the case,how you can take from these theoretical moments the moments of the levels??


No, because of the Jensen inequality. Note that you don't have to linearize the model yourself. You can write the non linear
equations of the model in the model block and Dynare will linearize the model for you.

Best,
Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Re: Model (linear) and Moments

Postby petros_varth » Thu Mar 04, 2010 1:46 am

Thanks a lot Stephane.
petros_varth
 
Posts: 45
Joined: Wed Sep 30, 2009 5:35 pm

Re: Model (linear) and Moments

Postby lor_men » Tue Nov 13, 2012 9:47 am

Hi, I am having a related problem. I need to pass from the expectation of the logs to the expectations in levels. I need this because I am solving my model analytically and want to check the correctness of the results I get comparing them with dynare and I solve the model analytically in logs. I wrote my model in levels and in logs (using exp() on each variables) and took a second order approximation.
I thought to recover the levels from the logs by using the properties of the lognormal distribution. For instance, the theoretical mean in levels should equal the exp of the theoretical mean in logs + one half of the theoretical variance in logs. I compared the two but the values are different for most variables. Could it be because in a second order approximation the variables in logs are not normal, since there is a quadratic term of the shock in the policy function? Notice that my model is very simple and there is no state variable apart from a non-autocorrelated productivity shock. Anyway I tried using a first order approximation of the model in logs and the same problem arises.
Lorenzo
lor_men
 
Posts: 3
Joined: Tue Nov 13, 2012 9:34 am


Return to Dynare help

Who is online

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