the distributed-lag expectations in dynare /please help me!/

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.

the distributed-lag expectations in dynare /please help me!/

Postby mido dison » Thu May 24, 2012 12:10 pm

hi everyone;

i'm trying to estimate a SOE model of inflation targeting based on a IMF paper (ref :WP/08/48), and i'm having the following trouble:

there's an UIP (uncovered interest parity) condition in the model where the expected exchange rate at t+1 is expressed as follows:

z_exp = delta*z(+1) + (1-delta)*z(-1)

where:
z_exp : the expected exchange rate at t+1
z : the real exchange rate

the problem is that, when i use this expression, matlab gives this warning message during estimation : " Matrix is singular to working precision ", and estimation fails by the end (even if i use mode_compute=6).

i use this command: model_diagnostics(M_,options_,oo_), and it gives me:

Warning: Matrix is close to singular or badly scaled. Results may be
inaccurate. RCOND = 1.347220e-018.
> In model_diagnostics at 115

model_diagnostic: the Jacobian of the static model is singular
there is 1 colinear relationships between the variables and the equations
Colinear variables:
z_exp
s // s is the nominal exchange rate
z
Colinear equations
Columns 1 through 12

1 2 3 5 6 7 10 11 12 14 17 20

Columns 13 through 16

21 22 26 27


and i don't know how to deal with this colinearity problem :(

What is a little bit strange is that when use the following trick, estimation works perfectly !:

i've tried to declare two parameters (delta_lead & delta_lag) intsead of delta, and i have written z_exp as follows:

z_exp = delta_lead*z(+1) + delta_lag*z(-1)

however, this is not theoretically correct because delta_lead and delta_lag should sum up to 1. :mrgreen:

So please help me, i'm really stuck and i have to deliver my project after tomorrow !

i'm using dynare 4.2.5, and i've tried the 4.2.4 and didn't work also (i thaught that may be it's a bug issue)

still have to mention that i'm an undergraduate student and i'm new to dynare :D

regards,

El Mehdi HAIZOUN
Last edited by mido dison on Tue Jul 10, 2012 4:05 pm, edited 2 times in total.
-_El Mehdi HAIZOUN_-
e.haizoun@insea.ac.ma
mido dison
 
Posts: 2
Joined: Thu May 03, 2012 5:13 pm
Location: Rabat, Morocco

Re: the distributed-lag expectations in dynare /please help

Postby mido dison » Thu May 31, 2012 8:43 pm

Heeeeeeeeelp :cry:
-_El Mehdi HAIZOUN_-
e.haizoun@insea.ac.ma
mido dison
 
Posts: 2
Joined: Thu May 03, 2012 5:13 pm
Location: Rabat, Morocco

Re: the distributed-lag expectations in dynare /please help

Postby jpfeifer » Tue Jun 05, 2012 7:16 am

I am sorry, but this is most probably an issue with your model. This type of collinearity problem typically occurs when you have on redundant equation in your model and you are missing another equation. It might occur in your case as the UIP is derived by combining 2 FOCs without eliminating one variable completely.
------------
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: No registered users and 5 guests

cron