Fixing some parameters, then estimating the remaining ones
Posted: Wed Nov 25, 2009 10:03 pm
dear all,
pretty simple. I have a code (the smets wouters 2007 from AER website) and it works. Now I want simply to fix one parameter to a certain value and re-estimate the other parameters of the model. I thought it was enough to fix the parameter in the parameter section of the code to the desired level and comment out that parameter from the list of parameters to be estimated. It does not work. I get the follwing error message:
??? Error using ==> lt
Matrix dimensions must agree.
Error in ==> DsgeLikelihood at 17
if options_.mode_compute ~= 1 & any(xparam1 < bayestopt_.lb)
Error in ==> initial_estimation_checks at 20
[fval,cost_flag,ys,trend_coeff,info] = DsgeLikelihood(xparam1,gend,data);
Error in ==> dynare_estimation at 249
initial_estimation_checks(xparam1,gend,data);
Error in ==> usmodel_BBG at 335
dynare_estimation(var_list_);
Error in ==> dynare at 26
evalin('base',fname) ;
ever happened to anybody? any idea? It seems as if xparam1 is keeping track of the number of parameters to estimate...but I'm certainly not an expert of bayesian estimation in dynare...
thanks a lot
happy thanksgiving!
barattie
pretty simple. I have a code (the smets wouters 2007 from AER website) and it works. Now I want simply to fix one parameter to a certain value and re-estimate the other parameters of the model. I thought it was enough to fix the parameter in the parameter section of the code to the desired level and comment out that parameter from the list of parameters to be estimated. It does not work. I get the follwing error message:
??? Error using ==> lt
Matrix dimensions must agree.
Error in ==> DsgeLikelihood at 17
if options_.mode_compute ~= 1 & any(xparam1 < bayestopt_.lb)
Error in ==> initial_estimation_checks at 20
[fval,cost_flag,ys,trend_coeff,info] = DsgeLikelihood(xparam1,gend,data);
Error in ==> dynare_estimation at 249
initial_estimation_checks(xparam1,gend,data);
Error in ==> usmodel_BBG at 335
dynare_estimation(var_list_);
Error in ==> dynare at 26
evalin('base',fname) ;
ever happened to anybody? any idea? It seems as if xparam1 is keeping track of the number of parameters to estimate...but I'm certainly not an expert of bayesian estimation in dynare...
thanks a lot
happy thanksgiving!
barattie