Please help me fix my problems

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.

Please help me fix my problems

Postby thanhha9289 » Sun Apr 26, 2015 10:03 am

Dear Prof.Johannes Pfeifer
Please help me fix my problems with dynare code.
Firstly, I constructed my model and It works.
In order to make it better, I continue to consider another member society (banking sector) and introduce the money growth rule in my model. And then the error appears like
Warning: Matrix is singular to working precision.
> In evaluate_steady_state at 85
In resol at 104
In check at 73
In ha_r4 at 655
In dynare at 180
Error using print_info (line 80)
The steady state contains NaN or Inf

Error in check (line 76)
print_info(info, 0, options);

Error in ha_r4 (line 655)
oo_.dr.eigval = check(M_,options_,oo_);

Error in dynare (line 180)
evalin('base',fname) ;

Please tell me how to fix this problem.
Thank Professor so much
Best Regard
Ha
Attachments
newdata_taylor.m
The datafile for my model
(8.45 KiB) Downloaded 83 times
Last edited by thanhha9289 on Sat May 02, 2015 2:02 am, edited 1 time in total.
thanhha9289
 
Posts: 19
Joined: Wed Feb 25, 2015 2:26 pm

Re: Please help me fix my problems

Postby jpfeifer » Tue Apr 28, 2015 5:24 am

Put
Code: Select all
resid(1);
steady(solve_algo=0);

before
Code: Select all
check;
model_diagnostics;

to see that
Residuals of the static equations:
....
Equation number 48 : 0.005

This means your model is not correctly linearized. In particular, equation 48 is
Code: Select all
mcspread=r_b - R_b;

with mcspread being a parameter equal to 0.005. This equation cannot be correct.

A few other things:
1. If you want to estimate your model, you need to fix the parameter dependence. You are not taking parameter dependence into account. That’s why you should use model-local variables (the ones with the pound operator) or a steady state file. See Remark 4 (Parameter dependence and the use of model-local variables) in Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf.

2. Your observation equation is wrong. You are trying to match trending data to stationary model variables. See again the referenced guide on how to correct this.

3. sigma_r is not set in your file, but used later.
------------
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: Google [Bot] and 8 guests