Can't run example1.mod

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.

Can't run example1.mod

Postby bert827 » Fri Oct 04, 2013 9:06 am

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
bert827
 
Posts: 6
Joined: Thu Oct 03, 2013 8:09 am

Re: Can't run example1.mod

Postby jpfeifer » Fri Oct 04, 2013 11:53 am

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.
------------
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: Can't run example1.mod

Postby bert827 » Thu Nov 21, 2013 5:43 am

Thanks a lot for your help. It worked.
bert827
 
Posts: 6
Joined: Thu Oct 03, 2013 8:09 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests