# How can I use my data file

**URL:** <https://forum.dynare.org/t/how-can-i-use-my-data-file/3481>\
**Category:** Dynare contributions and examples\
**Created:** [4 November 2013 15:34 UTC](https://forum.dynare.org/t/how-can-i-use-my-data-file/3481 "2013-11-04T15:34:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![darline](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/c0e974/32.png) [@darline](https://forum.dynare.org/u/darline)\
**Post date:** [4 November 2013 15:34 UTC](https://forum.dynare.org/t/how-can-i-use-my-data-file/3481/1 "2013-11-04T15:34:57Z")

</div>

Morning. Please I have a problem when I try to execute my mode file with my data file, this error message appears. please what can I do to solve it?  
thanks.  
??? Subscripted assignment dimension mismatch.

Error in ==\> read\_variables at 98  
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 347  
dataset\_ =  
initialize\_dataset(options\_.datafile,options\_.varobs,options\_.first\_obs,options\_.nobs,transformation,options\_.prefilter,xls);

Error in ==\> dynare\_estimation\_1 at 59  
[dataset\_,xparam1, M\_, options\_, oo\_, estim\_params\_,bayestopt\_] = dynare\_estimation\_init(var\_list\_,  
dname, ], M\_, options\_, oo\_, estim\_params\_, bayestopt\_);

Error in ==\> dynare\_estimation at 70  
dynare\_estimation\_1(var\_list,dname);

Error in ==\> esti at 178  
dynare\_estimation(var\_list\_);

Error in ==\> dynare at 120  
evalin(‘base’,fname) ;

---

<div class="post-metadata">

**Author:** ![darline](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/c0e974/32.png) [@darline](https://forum.dynare.org/u/darline)\
**Post date:** [4 November 2013 15:38 UTC](https://forum.dynare.org/t/how-can-i-use-my-data-file/3481/2 "2013-11-04T15:38:10Z")

</div>

this is the mod.file and the data file  
[esti.mod](https://forum.dynare.org/uploads/default/original/2X/c/c015bda7a43f79117e4efe73eb545f7a94a0bd78.mod) (3.07 KB)  
[camer.XLS](https://forum.dynare.org/uploads/default/original/2X/d/d01469b3b7afa78757d49e20bddffc6ef747de08.XLS) (4.05 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [5 November 2013 09:34 UTC](https://forum.dynare.org/t/how-can-i-use-my-data-file/3481/3 "2013-11-05T09:34:31Z")

</div>

Dynare is case-sensitive. Your model variables are lowercase, while your datafile uses uppercase names.

---

<div class="post-metadata">

**Author:** ![darline](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/c0e974/32.png) [@darline](https://forum.dynare.org/u/darline)\
**Post date:** [5 November 2013 21:50 UTC](https://forum.dynare.org/t/how-can-i-use-my-data-file/3481/4 "2013-11-05T21:50:13Z")

</div>

thanks very much I have rectified it but another problem is there. I do not understand, when I execute the simlation, its run. But when I try to estimate, the following error message appears:

Error using ==\> print\_info at 40  
Blanchard Kahn conditions are not satisfied: no stable equilibrium

Error in ==\> initial\_estimation\_checks at 69  
print\_info(info, DynareOptions.noprint)

Error in ==\> dynare\_estimation\_1 at 169  
oo\_ =  
initial\_estimation\_checks(objective\_function,xparam1,dataset\_,M\_,estim\_params\_,options\_,bayestopt\_,oo\_);

Error in ==\> dynare\_estimation at 70  
dynare\_estimation\_1(var\_list,dname);

Error in ==\> darline at 265  
dynare\_estimation(var\_list\_);

Error in ==\> dynare at 120  
evalin(‘base’,fname) ;

I don’t realy know what to do.  
Thanks in advance  
[darline.mod](https://forum.dynare.org/uploads/default/original/2X/0/01d565d65cb4f9febc4ea576fb686e1d7d37f843.mod) (4.8 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [6 November 2013 16:26 UTC](https://forum.dynare.org/t/how-can-i-use-my-data-file/3481/5 "2013-11-06T16:26:41Z")

</div>

You should then provide your calibrated values as explicit starting values. Moreover, given your unit roots (two eigenvalues are 1) you might need the diffuse\_filter option in estimation (see the manual)

---

<div class="post-metadata">

**Author:** ![tinnytots](https://forum.dynare.org/letter_avatar_proxy/v4/letter/t/e68b1a/32.png) [@tinnytots](https://forum.dynare.org/u/tinnytots)\
**Post date:** [22 November 2013 09:25 UTC](https://forum.dynare.org/t/how-can-i-use-my-data-file/3481/6 "2013-11-22T09:25:19Z")

</div>

Some writers make it difficult to understand the point they’re trying to get across. You, the other hand have made your points clear, concise and interesting.

---

<div class="post-metadata">

**Author:** ![Corinna314](https://forum.dynare.org/letter_avatar_proxy/v4/letter/c/a88e4f/32.png) [@Corinna314](https://forum.dynare.org/u/Corinna314)\
**Post date:** [27 December 2013 11:49 UTC](https://forum.dynare.org/t/how-can-i-use-my-data-file/3481/7 "2013-12-27T11:49:13Z")

</div>

Thanks for posting here information… I have searched from this site… It is amazing…
