Restriction on the number of estimated parameters?

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.

Restriction on the number of estimated parameters?

Postby AnitaYang » Sun Aug 05, 2012 2:18 am

Dear all,

I'm wondering whether anyone here has ever encountered the similar question as me. I'm estimating a small open economy model using five macroeconomic quarterly Chilean time series. First, I fixed 10 parameters and estimated 11 parameters, including the intertemporal elasticity of substitution (crho.) Everything was fine and I got estimation results, though crho is quite low and very close to the lower bound, 0.25. Then, I fixed crho as 1.2 and removed crho from the "estimated_params" block. Run the same file. However, I got the following error message:

In an assignment A(I) = B, the number of elements in B and I must be the same.

Error in set_parameters (line 70)
M_.params(estim_params_.param_vals(:,1)) = xparam1(offset+1:end);

Error in dynare_estimation_1 (line 110)
set_parameters(xparam1);

Error in dynare_estimation (line 70)
dynare_estimation_1(var_list,dname);

Error in version2_FB_nlin_est (line 311)
dynare_estimation(var_list_);

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


Why could the change of a single parameter from being an estimated paramter to a calibrated paramter cause errors?
Any help is deeply appreciated.

Thank you. Anita
Last edited by AnitaYang on Tue Aug 07, 2012 7:42 pm, edited 2 times in total.
AnitaYang
 
Posts: 13
Joined: Sun Aug 29, 2010 3:30 am

Re: Restriction on the number of estimated parameters?

Postby jpfeifer » Mon Aug 06, 2012 11:27 am

Have you tried Dynare 4.3? Your code works on my machine.
------------
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

Re: Restriction on the number of estimated parameters?

Postby AnitaYang » Mon Aug 06, 2012 7:33 pm

Yes, I'm using 4.3. The code I posted previously does work but it crushes when I eliminate "crho" from estimated_params block and fix its value. However, I also found that when I fix "crho" but remove "mode_file=version2_FB_nlin_est_mode" from the estimation options, the code can run. Why does the specification of "mode_file" matter to the result?

Thanks a lot for your help.
AnitaYang
 
Posts: 13
Joined: Sun Aug 29, 2010 3:30 am

Re: Restriction on the number of estimated parameters?

Postby jpfeifer » Tue Aug 07, 2012 4:12 am

Ok. That explains why it ran on my machine: I had to delete the mode-file part, because you did not post it.
Does this mean, you are trying to use the mode-file for the case where crho was estimated? If yes, this explains the error. The mode-file still contains the row and column belonging to crho. I guess you have to recompute the mode.
------------
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

Re: Restriction on the number of estimated parameters?

Postby AnitaYang » Tue Aug 07, 2012 7:41 pm

Thank you! I get it.
AnitaYang
 
Posts: 13
Joined: Sun Aug 29, 2010 3:30 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests