Page 1 of 1

Can't run example1.mod

PostPosted: Fri Oct 04, 2013 9:06 am
by bert827
Hi there
Am new to dynare and matlab and am trying to enter my first DSGE model into dynare. However, after installation, I wanted to test how it works by running example1. mod but this is the error that I get, I am using macbook:


EDU>> addpath /applications/dynare/4.3.3/matlab/
EDU>> dynare example1

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.

Error using dynare (line 96)
DYNARE: can't open example1.mod

same thing happens if I start defining the variables with the command var, i get the error of too many input arguments as below:
DU>> var c c_n c_t c_h c_f c_hsta c_fsta c_sta r r_sta pi_h pi_n pi_f pi_t pi pi_sta p p_t p_n p_h p_f p_sta y y_h y_n e mc_n mc_t f a n z m;
Error using var
Too many input arguments.

Please tell me how I can proceed to rectify these errors.
Thanks
Bertha

Re: Can't run example1.mod

PostPosted: Fri Oct 04, 2013 11:53 am
by jpfeifer
Judging from the error message, when you typed
Code: Select all
dynare example1

your "Current Folder" in Matlab was not
Code: Select all
/applications/dynare/4.3.3/matlab/examples

where the mod file is located. Just adding the path where the example is located does not work.

Re: Can't run example1.mod

PostPosted: Thu Nov 21, 2013 5:43 am
by bert827
Thanks a lot for your help. It worked.