Content

Thoughts on Modelling and Statistics using Gams, Emacs and Stata or R

File: Emacs

One of the nice features of Gams-Mode for Emacs is the possibility to quickly look up the identifier part of a variable, parameter or set. This is a nice feature in big models or when you haven’t worked with the model for some time. Just put the cursor somewhere on the parameter in the code [...]

 » Read the rest

2010-06-22 :: admin // Emacs + Stata
Emacs and Stata

Although I am not a great fan of multi-tasking I often use a lot of programs simultaneously for one task: For example, when I am writing a report in Word or with Emacs, I take notes in Emacs, search the internet and have my model results in the gdx-viewer.  Additionally my mail client is somewhere in the [...]

 » Read the rest

First run your model by hitting C-c C-s (C stands for Ctrl) or use the same command from the menu. Emacs will open a new window and you see how Gams solves your model. When Gams is finished you can hit F10 (or C-c C-v)  to show the listing file in a new buffer. We [...]

 » Read the rest

2010-06-15 :: admin // Emacs
Emacs Goodies

Suppose you have the following information in a text file: A;410 B;243 C;134 A;410 B;324 C;134 A;410 B;324 C;134 …   and you would like to have this text in the following format          A        410,        B        243,   Emacs makes this a [...]

 » Read the rest

2010-06-15 :: admin // Emacs + GAMS + Gams-Mode
Syntax Coloring in Gams-Mode

Let us start simple and get a model from the Gams-library. If you started emacs you are not in gams-mode (you can check this by looking at the menu bar: there is no gams-entry). If you load a gams model (with the extension “gms”), Emacs automatically turns on gams-mode and the gams entry appears in [...]

 » Read the rest

2010-06-15 :: admin // Emacs + GAMS + Gams-Mode
Installing Gams-Mode for Emacs

First of all download gams-mode from Shiro Takeda’s website: You will find it here: gams-mode-download. The files are zipped and should be unzipped to a directory Emacs will find. I show you my settings (as usual, you can do it in an other way). I have all my additional features in a directory that resides [...]

 » Read the rest

http://aquamacs.org/. On Windows it is a different story. Emacs is coming from the Unix world and on Windows installing asks for a little bit more knowledge of Windows basics. You can’t for example install an additional feature (like Gams-mode for Emacs) by just double-clicking on a file. You have to move the downloaded files to [...]

 » Read the rest

GAMS users probably spend most of their time editing their models. Just before project deadlines they may sit more than 8 hours a day in front of their computer hacking through their code. The choice of a good editor can therefore be crucial. After years of trying different editors I finally stuck (xxx) with the [...]

2 comments  » Read the rest