how can I run example1 on dynare

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.

how can I run example1 on dynare

Postby darline » Wed Oct 23, 2013 9:18 pm

Hi to alll of U
I don't know how to run those examples which are on dynare. When I try, this message appears:
dynare bkk

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 at 96
DYNARE: can't open bkk.mod
please help me I don't know how to do
tanks
sorry for my bad english but I am a french speaker
darline
 
Posts: 13
Joined: Wed Oct 23, 2013 8:29 pm

Re: how can I run example1 on dynare

Postby jpfeifer » Thu Oct 24, 2013 11:38 am

The file must be located in Matlab's Current Folder.
------------
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: how can I run example1 on dynare

Postby darline » Thu Oct 24, 2013 12:49 pm

Thanks very much but it does'nt walk, it gives me the same message
>> addpath c:\dynare\4.3.3\matlab
>> 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 at 96
DYNARE: can't open example1.mod

please I nead your answer
Thanks in advance
Darline
darline
 
Posts: 13
Joined: Wed Oct 23, 2013 8:29 pm

Re: how can I run example1 on dynare

Postby jpfeifer » Thu Oct 24, 2013 1:11 pm

You are confusing the Current Folder with the paths set. It would rather be

Code: Select all
cd c:\dynare\4.3.3\matlab
dynare example1
------------
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: how can I run example1 on dynare

Postby darline » Thu Oct 24, 2013 1:32 pm

I don't understand why it does'nt walk.
SELECT ALL
??? Undefined function or method 'SELECT' for input arguments of type 'char'.
>> cd c:\dynare\4.3.3\matlab
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 at 96
DYNARE: can't open example1.mod

it does'nt change
thanks
Darline
darline
 
Posts: 13
Joined: Wed Oct 23, 2013 8:29 pm

Re: how can I run example1 on dynare

Postby jpfeifer » Thu Oct 24, 2013 2:07 pm

My mistake. You need to add the matlab folder of dynare to the path and set the current folder to the examples folder where the mod-file is located. Thus:

Code: Select all
addpath c:\dynare\4.3.3\matlab
cd c:\dynare\4.3.3\matlab\examples
dynare example1
------------
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: how can I run example1 on dynare

Postby darline » Thu Oct 24, 2013 2:23 pm

thank you very much now it walks. thank you
darline
 
Posts: 13
Joined: Wed Oct 23, 2013 8:29 pm


Return to Dynare contributions and examples

Who is online

Users browsing this forum: No registered users and 5 guests