Assignment has more non-singleton rhs dimensions

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.

Assignment has more non-singleton rhs dimensions

Postby zubin » Tue Sep 21, 2010 5:34 am

Hi, will someone help check this programme for me? It's a bit long, but I just need some general tips to cope with the error that Matlab tells me, i.e. someone please tell me which block I have to change, is it parameters, models or variables? Seems that there are some non-stationarity problems.
Many Thanks!
Programme is in the attach, and following is the error message:

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

Error in ==> th_autocovariances at 154
Gamma_y{nar+2}(stationary_vars,i) = vx2;

Error in ==> disp_th_moments at 37
[oo_.gamma_y,stationary_vars] = th_autocovariances(dr,ivar,M_,options_);

Error in ==> stoch_simul at 73
disp_th_moments(oo_.dr,var_list);

Error in ==> FDI at 485
info = stoch_simul(var_list_);

Error in ==> dynare at 132
evalin('base',fname) ;
Attachments
FDI.mod
(6.82 KiB) Downloaded 174 times
zubin
 
Posts: 4
Joined: Mon Aug 23, 2010 7:27 am

Re: Assignment has more non-singleton rhs dimensions

Postby adam_elbourne » Tue Sep 28, 2010 9:12 am

As far as I can remember, when I have had similar error messages in the past it was because I had got the names of my variables mixed up. For example, when I had declared e_a under varexo but ea for the standard deviation of the shocks just before the stoch_simul command.

What I understand the error message to mean (I might be wrong, of course) is that when the Matlab routine is going through your variable names one name at a time (element-by-element) from one matrix and looking up a value in a different matrix, then the dimensions don't match. In that case, the corresponding value that Matlab tries to associated with a variable doesn't exist. With me, this was because I had mistyped a name so Matlab was looking for a value that didn't exist...

I hope this helps...

Adam
Adam Elbourne
Netherlands Bureau of Economic Policy Analysis (CPB)
adam_elbourne
 
Posts: 4
Joined: Tue Apr 15, 2008 12:03 pm

Re: Assignment has more non-singleton rhs dimensions

Postby SébastienVillemot » Mon Oct 11, 2010 10:24 am

Thanks for reporting this.

It is a bug in Dynare, which only appears when all the variables listed after “stoch_simul” are non-stationary.

This is the case with your MOD file. If you remove the list on the “stoch_simul” line, you should get a correct output.

This problem will be fixed in Dynare 4.1.3.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Assignment has more non-singleton rhs dimensions

Postby zubin » Wed Oct 20, 2010 11:07 am

Thank you very much for both of your help.
I remove the variable list and it does work out.
zubin
 
Posts: 4
Joined: Mon Aug 23, 2010 7:27 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests