How to create dynare .mod files?

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 to create dynare .mod files?

Postby L10ng1rl » Thu Feb 02, 2012 10:49 pm

Hello,


Today I have downloaded and installed version 4.2.4 of Dynare, but I am having some trouble to create new files with the .mod extension. For what I understood, in order to create a new .mod file I just need to open a new m-file but save it with a .mod extension instead of a .m extension. However, Matlab does not offer me the possibility to choose between these two extensions, it only give me the .m possibility. I think that this must be due to some mistake in the installation process. If I run one of the examples available with Dynare, opened in the directory "C:\dynare\4.2.4\examples" in the Current Directory, and typping "dynare example1" in the command window, the program is able to read the file and to run it. However, I don't know why the program is not abel to create new files with this extension. Can you help me? Thanks in advance for all your attention!
L10ng1rl
 
Posts: 6
Joined: Thu Feb 02, 2012 7:34 pm

Re: How to create dynare .mod files?

Postby Daniel Bendel » Fri Feb 03, 2012 9:31 am

Hey,

you just simply have to do it the following way:

After you write your dynare code as an script in matlab, you want to save it. When you save it, you are ask for to choose the name of your scirpt. There you have simply to typ instead of 'script.m' just 'script.mod'. You have to write the .mod part by hand. You cannot choose it.

Hope this helps you.

Greets,
Daniel
Germany, Cologne
Daniel Bendel
 
Posts: 134
Joined: Tue Nov 15, 2011 1:06 pm
Location: Cologne, Germany

Re: How to create dynare .mod files?

Postby L10ng1rl » Fri Feb 03, 2012 2:55 pm

It worked!!! Many, many thanks! It was 100% helpful! Sorry about the silly question, but I'm new at this! Thanks!
L10ng1rl
 
Posts: 6
Joined: Thu Feb 02, 2012 7:34 pm

Re: How to create dynare .mod files?

Postby waleeed00 » Mon Mar 21, 2016 5:37 am

it only give me the .m possibility. I think that this must be due to some mistake in the installation process. If I run one of the examples available with Dynare, opened in the directory "C:\dynare\4.2.4\examples" in the Current Directory, and typping "dynare example1" in the command window, the program is able to read the file and to run it. However, I don't know why the program is not abel to create new files with this extension. Can you help me? Thanks in advance for all your attention!
waleeed00
 
Posts: 1
Joined: Mon Mar 21, 2016 5:31 am

Re: How to create dynare .mod files?

Postby jpfeifer » Tue Mar 29, 2016 7:40 am

You need to provide the .mod ending manually to the editor you are using.
------------
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


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 10 guests