??? Error using ==> mtimes

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.

??? Error using ==> mtimes

Postby aemkei1982 » Mon Jan 14, 2008 11:09 am

Hallo,

I have a model which can be solved using the stoch_simul command.
But when I try to estimate it there seem to be problems related to matrix dimension and I get the following error message.

??? Error using ==> mtimes
Inner matrix dimensions must agree.

Error in ==> DsgeLikelihood at 120
Pstar = lyapunov_symm(T,R*Q*transpose(R));

My model is in linear form. The Kalman-Filter does not seem to work properly on it. How can I make the matrix dimensions agree?

Is there anything I have to consider when estimating a model in linear form? What difference does it make if I declare only one or all parameters under "estimated_params"? Or if I have one or two observables?
Attachments
linearmodel_psiPM.mod
Estimation
(3.49 KiB) Downloaded 78 times
EstoniaToT.m
Datafile
(1.38 KiB) Downloaded 83 times
linearmodel_zahlen.mod
stoch_simul mod
(3.12 KiB) Downloaded 77 times
aemkei1982
 
Posts: 13
Joined: Tue Dec 11, 2007 5:04 pm

Postby MichelJuillard » Wed Jan 16, 2008 7:32 am

You forgot to specify the standard errors of the shocks v and w. You must either calibrate them or estimate them

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby aemkei1982 » Wed Jan 16, 2008 9:38 am

Hallo,

Thank you for the hint.

I have added the standard errors of the shocks to the estimated_params section. Now he is telling me that:

??? Assignment has more non-singleton rhs dimensions than non-singleton
subscripts

Error in ==> set_prior at 42
estim_params_.var_endo(i,1) = strmatch(deblank(lgy_(estim_params_.var_endo(i,1),:)),deblank(options_.varobs),'exact');

Error in ==> dynare_estimation at 87
[xparam1,estim_params_,bayestopt_,lb,ub]=set_prior(estim_params_);

Error in ==> linearmodel_psiPM at 167
dynare_estimation(var_list_);

Error in ==> dynare at 26
evalin('base',fname) ;

What does that mean?
If I want to calibrate instead of estimate the stderrs how do I have to code this?
Attachments
linearmodel_psiPM.mod
specified stderrs
(3.36 KiB) Downloaded 91 times
aemkei1982
 
Posts: 13
Joined: Tue Dec 11, 2007 5:04 pm

Postby MichelJuillard » Wed Jan 16, 2008 10:54 am

You can't use inf as the standard error of the normal distribution. It only makes sense with the inverted gamma

Best

michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby aemkei1982 » Wed Jan 16, 2008 12:00 pm

Oh thanks, I did not consider that. My prior specifications are just for trial purposes at this stage.
I corrected that but that does not seem to be the problem.
The same error message occurs.

Best,

Minkyu
Attachments
linearmodel_psiPM.mod
(3.29 KiB) Downloaded 320 times
aemkei1982
 
Posts: 13
Joined: Tue Dec 11, 2007 5:04 pm

Postby MichelJuillard » Wed Jan 16, 2008 12:20 pm

The mistakes comes from the fact that you have W as endogenous variable and w as a shock. You can't count on version 3 to always take the difference into account. Version 4 doesn't have a problem with this, but it is a confusing practice to differentiate two variables only by their case.

In addition, if you use a beta prior, the prior mean must be contained between 0 and 1.

Best

michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby aemkei1982 » Wed Jan 16, 2008 5:01 pm

Thank you very much for your detailed help.
The estimation is finally working
aemkei1982
 
Posts: 13
Joined: Tue Dec 11, 2007 5:04 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 8 guests