# Dsge-var

**URL:** <https://forum.dynare.org/t/dsge-var/2173>\
**Category:** DSGE-VAR\
**Created:** [1 October 2011 17:00 UTC](https://forum.dynare.org/t/dsge-var/2173 "2011-10-01T17:00:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carmine](https://forum.dynare.org/letter_avatar_proxy/v4/letter/c/d2c977/32.png) [@Carmine](https://forum.dynare.org/u/Carmine)\
**Post date:** [1 October 2011 17:00 UTC](https://forum.dynare.org/t/dsge-var/2173/1 "2011-10-01T17:00:01Z")

</div>

Dear all,  
I am trying to repeat the procedure used by Del Negro and Schorfheide, using a different DSGE model (the DSGE model present in the chapter 3 of Galì’s 2008 book).  
I have loglinearized the model before, so the .mod file contains the model loglinearized.  
I use the same model to simulate the varibles. I attach the two files, please someone could check what could be wrong?  
The errors Matlab gives to me are:

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

Error in ==\> DsgeVarLikelihood at 138  
tmp0 =  
lyapunov\_symm(T,R_Q_R’,options\_.qz\_criterium,options\_.lyapunov\_complex\_threshold);%  
I compute the variance-covariance matrix

Error in ==\> csminit at 126  
f = feval(fcn,dxtest,varargin{:});

Error in ==\> csminwel1 at 101  
[f1 x1 fc retcode1] = csminit(fcn,x,f,g,badg,H,varargin{:});

Error in ==\> dynare\_estimation\_1 at 209  
[fval,xparam1,grad,hessian\_csminwel,itct,fcount,retcodehat] = …

Error in ==\> dynare\_estimation at 62  
dynare\_estimation\_1(var\_list,varargin{:});

Error in ==\> galiest at 168  
dynare\_estimation(var\_list\_);

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

Many thanks.  
Bests  
Carmine.  
[galiultimo.mod](https://forum.dynare.org/uploads/default/original/2X/a/ac38ff57f452b1c4cfbc558b3d504122f79a3591.mod) (1.05 KB)  
[galiest.mod](https://forum.dynare.org/uploads/default/original/2X/1/13ff0437e4ea6a19760099b236a58e7446ac5d31.mod) (2.02 KB)

---

<div class="post-metadata">

**Author:** ![stepan-a](https://forum.dynare.org/user_avatar/forum.dynare.org/stepan-a/32/6652_2.png) [@stepan-a](https://forum.dynare.org/u/stepan-a)\
**Post date:** [2 August 2017 21:59 UTC](https://forum.dynare.org/t/dsge-var/2173/2 "2017-08-02T21:59:49Z")

</div>

Problem is that BK conditions are not fulfilled for the initial condition of the parameters (considered for the optimization of the posterior kernel). Also parameter `rho`should not be estimated because this is not consistent with calibrated parameter `neta`.
