Variable Transformation
Posted: Wed Feb 17, 2016 12:22 pm
Dear all,
I am currently trying to simulate a perfect foresight model of fiscal policy with capital variable capacity utilization.
I have noticed that, even following a small initial perturbation, capacity utilization tends exceed 1 during the transitional dynamics: this is consistent with the structure of the model where the initial perturbation is typically associated with a temporary policy response of capital subsidy.
Nevertheless this needs to be fixed as theoretically meaningless: here’s where my problem comes.
I have tried to fix it by using several types of variable transformations: e.g. with ‘m’ being capacity utilization, I have tried f(m)=1/(1+exp(m)),
f(m)= exp(-m)/(1+exp(-m)), f(m)=max(1,m) ect..
(variable transformation has been implemented via local variables..).
However, following this procedure, I end up with the following issues (both not present in the no-transformed models):
1) Jacobian of the static model is singular.
2) I receive this error message:
Now, since capacity utilization also appears as a forward-looking variable in my dynamic model, I am wondering if that is the problem e.g. does Jensen inequality impede variable transformation?
If that is the case, how should I approach the problem of bounding this variable then? (I guess in this case using Dynare Pre-processor for this task would turn out useless for the same reasons).
If that is not the case, does anyone have any clue of what’s wrong?
I attach two .mod files: they are identical in any respects, except that the ‘_mTransf’ contains a variable transformation for ‘m’.
Many thanks in advance, and sorry for the long post.
M
I am currently trying to simulate a perfect foresight model of fiscal policy with capital variable capacity utilization.
I have noticed that, even following a small initial perturbation, capacity utilization tends exceed 1 during the transitional dynamics: this is consistent with the structure of the model where the initial perturbation is typically associated with a temporary policy response of capital subsidy.
Nevertheless this needs to be fixed as theoretically meaningless: here’s where my problem comes.
I have tried to fix it by using several types of variable transformations: e.g. with ‘m’ being capacity utilization, I have tried f(m)=1/(1+exp(m)),
f(m)= exp(-m)/(1+exp(-m)), f(m)=max(1,m) ect..
(variable transformation has been implemented via local variables..).
However, following this procedure, I end up with the following issues (both not present in the no-transformed models):
1) Jacobian of the static model is singular.
2) I receive this error message:
One of the eigenvalues is close to 0/0 (the absolute value of numerator and denominator is smaller than 1e-06!
If you believe that the model has a unique solution you can try to reduce the value of qz_zero_threshold.
Now, since capacity utilization also appears as a forward-looking variable in my dynamic model, I am wondering if that is the problem e.g. does Jensen inequality impede variable transformation?
If that is the case, how should I approach the problem of bounding this variable then? (I guess in this case using Dynare Pre-processor for this task would turn out useless for the same reasons).
If that is not the case, does anyone have any clue of what’s wrong?
I attach two .mod files: they are identical in any respects, except that the ‘_mTransf’ contains a variable transformation for ‘m’.
Many thanks in advance, and sorry for the long post.
M