Subscripted assignment dimension mismatch

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.

Re: Subscripted assignment dimension mismatch

Postby mktlkez » Thu Jul 01, 2010 11:45 am

There is a fixed stock of 1 unit of money in the economy, which may be held by either firms or consumers. Introducing depreciation would move the steady state to a point of 0 money stock.
mktlkez
 
Posts: 13
Joined: Tue Jun 22, 2010 3:35 pm

Re: Subscripted assignment dimension mismatch

Postby jpfeifer » Thu Jul 01, 2010 12:15 pm

Probably you should take a look into Schmitt-Grohe/Uribes "Closing small open economy models" (http://econ.duke.edu/~grohe/research/closing_jie.pdf). The problem of non-stationarity of asset holdings in small open economies seems to be related to your problem. They show different modeling options to close the model and render it stationary.
------------
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: Subscripted assignment dimension mismatch

Postby mktlkez » Mon Jul 19, 2010 2:16 pm

Thanks for your suggestions. I ended up getting rid of the unit root by putting a 10^-4 tax on money, rebating it lump sum to agents. I compared the resulting theoretical moments with the simulated moments in the model without the tax (and hence with the unit root) and found they were almost identical. I think this may be a case in which the simulated moments are in fact correct. For now I'm sticking with the theoretical moments because they take significantly less CPU time.

The remaining question is about the 3rd order expansion. It isn't working on my Mac. When I specify order 3 I get this message

ERROR: When using option 'k_order_solver' (which is implicit if order >= 3), you must specify option 'use_dll' on the 'model' block

when I change "model;" to "model(use_dll);" I get

/Applications/MATLAB_R2009b.app/bin/mex: line 1107: gcc-4.0: command not found
/Applications/MATLAB_R2009b.app/bin/mex: line 997: gcc-4.0: command not found

Any guesses what's going on?
mktlkez
 
Posts: 13
Joined: Tue Jun 22, 2010 3:35 pm

Re: Subscripted assignment dimension mismatch

Postby selima » Fri Jan 02, 2015 3:10 pm

Good morning Mr Jpfeifer .First I would like to wish you happy new year , then I would like to ask you about an error in dynare that I meet ..I read many messages in dynare that are like this problem but I could not solve the issue .Here is my mod file and my data.Can you help me?
Sorry for disturbing you again Mr jpfeifer .

??? Subscripted assignment dimension mismatch.

Error in ==> read_variables at 79
dyn_data_01(:,dyn_i_01) = dyn_tmp_01;

Error in ==> initialize_dataset at 32
rawdata = read_variables(datafile,varobs,[],xls.sheet,xls.range);

Error in ==> dynare_estimation_init at 477
dataset_ = initialize_dataset(options_.datafile,options_.varobs,options_.first_obs,options_.nobs,transformation,options_.prefilter,xls);

Error in ==> dynare_estimation_1 at 81
[dataset_,xparam1, hh, M_, options_, oo_, estim_params_,bayestopt_] = dynare_estimation_init(var_list_, dname, [], M_, options_, oo_, estim_params_,
bayestopt_);

Error in ==> dynare_estimation at 84
dynare_estimation_1(var_list,dname);

Error in ==> article4 at 365
dynare_estimation(var_list_);

Error in ==> dynare at 174
evalin('base',fname) ;
Attachments
data2.m
(10.28 KiB) Downloaded 62 times
article4.mod
(5.45 KiB) Downloaded 60 times
selima
 
Posts: 46
Joined: Thu Jan 10, 2013 5:13 pm

Re: Subscripted assignment dimension mismatch

Postby jpfeifer » Mon Jan 05, 2015 10:04 pm

Your datafile erroneously uses a comma as the decimal separator for some variables. When you execute your data file, some variables have dimension N by 2 instead of N by 1 because of this.
------------
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

Previous

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests