some weeks ago I've started to switch to the sublime editor
(https://www.sublimetext.com/) for writing gretl code.
Even though I like the simplicity of the gretl editor and its features
such as syntax highlighting and auto-itendation, it lacks some features
of modern IDEs such as "goto-anything", "goto-definition", custom
keybindings, fancy themes, git-implementation, snippets etc. which make
life much easier when working on larger projects. Don't get me wrong,
the gretl editor is great but was _never_ supposed to become a proper
software-development IDE but rather has another focus which is totally fine.
So I started to write the "Hansl-Gretl-Language" package for sublime
which includes the following features:
- 3 gretl build-systems (client mode, batch mode, and REPL mode) for
executing hansl code by means of sublime (plots are also working!)
- completion of gretl commands, accessors and keywords
- some snippet examples for speeding up coding
The project still has the following (known) issues:
- no auto-itendation (still have to figure out how this works)
- issues with some corner-cases which are not syntax-highlighted (regex
can become so hard!)
The package can be downloaded through sublimes package control system,
and can be found here:
If somebody wants to participate on this project, check out the code on
my github repository:
For those interesting in the sublime editor, check out "OdatNurd"'s
brilliant tutorials on youtube:
Enjoy the package,
As usual, see http://gretl.sourceforge.net/
A couple of notes:
(1) The 32-bit Windows installer now has "32" in its name:
gretl_install-32.exe (and it's no longer the default download for
Windows, that's now the 64-bit version).
(2) We're no longer updating the legacy OS X builds (for 32-bit
Intel and PPC, both requiring X11/Xorg). 2020b was the last gretl
release for those platforms. The 64-bit "quartz" build of gretl will
run on macOS 10.6 or higher.
Here's the change log:
2020-07-31 version 2020c
- New feature: thematic maps, supported by new "geoplot"
addon; allow loading GeoJSON and ESRI shapefiles as
- New feature: offer a choice of plotting styles or themes,
via GUI and also via a new "set" variable, graph_theme;
plus set the default to the "dark2" theme
- Add new bincoeff() function, giving binomial coefficients
- Add new sgn() function: returns the sign of its argument
- Improve error message in case of invalid gnuplot path
- loop: make "quiet" operation the default
- Path-searching for inputs: improve the mechanism for
storing likely locations based on the opening of scripts
- Packaged datasets: show type and size in the GUI, as well
as a brief description
- GUI data access: add convenience menu items for accessing
files supplied by "addons" such as SVAR
- bwrite() and bread() functions: support JSON as well as
XML for representing gretl bundles
- atof() function: allow giving a string-valued series as
- strlen() function: generalize to allow strings array and
string-valued series arguments
- pshrink() function: add an optional argument to avoid
skipping missing values
- mshape() function: make the third argument optional and
document the new behavior
- Fix bug: failure of negative matrix index (exclusion)
when a value of -999 was given
- Fix bug: the "restrict" command as applied to VECMs could
emit an unwanted newline even given the --silent option
- Fix bug: "panel plot" coud crash under certain conditions
- Fix bug: ensure greater precision when printing values
to 15 or more significant digits
- Fix bug: possible error in Spearman's rho for the case of
- "fractint" and "hurst" commands: make the estimated
fractional difference or exponent accessible via the
- "xtab" command: fix for the case when one or more of the
series to be cross-tabulated are string-valued
- "summary" command: don't provide spurious results for
- "scatters" command, time-series variant: try harder to get
appropriate time-axis tics
- "pkg" command: enable variant "pkg index addons" to update
the index of installed "addon" packages
- "set" command, "initvals" keyword: clarify the status of
this setting (non-persistent)
- String-valued series: drop any unused strings when sub-
sampling with the --permanent flag, and when saving a
sub-sampled dataset via the "store" command
- Arrays of strings: support union and intersection via the
"||" and "&&" operators respectively
- Error reporting: be more specific when the problem is an
out-of-bounds index value
- Datasets supplied with gretl: include a version of R's
"swisspharma" data; enhance the grunfeld panel dataset
- User's Guide: incorporate the previously stand-alone MIDAS
documentation as two new Guide chapters
- MS Windows and macOS builds: update to gnuplot 5.2.6
- macOS: provide 64-bit builds of x13as and tramo-seats
- Building gretl on MS Windows: updates and improvements to
the auto-generated support files
- Update several translations
- Numerous small bug-fixes
Department of Economics
Wake Forest University
Hello Gretl friends,
In two weeks I'll begin to teach the course "Economic History: Booms and
Busts - Skills for Understanding Crises" This online course was designed to
teach economic history through statistics and the software chosen, of
course, it's Gretl!
The initial level of the students is quite basic, and one of the problems
we have detected is the great majority of them don't have any experience
with statistical software beyond Excel. So, they are used to *undoing*
actions if they make a mistake.
*The question. *As I usually work in gretl with *Hansl* instead of the GUI,
I haven't realized that there is not an "undo" button in the GUI... *Is
there a way to undo an action in Gretl?* Example, if I delete a series,
could I undo this action? if the answer is yes, how?
Thank you in advance and I'll keep you updated regarding the reception of
Best and happy weekend
Cristián Arturo Ducoing Ruiz
Hello Gretl Users,
How to present two lines diagram (A and B) in a
single diagram using two matrices A and B of the same size( 20x1) ?
It would be greatly appreciated if you
provide the code.
We're close to releasing gretl 2020c, and today's snapshots
(2020-07-24) are in effect "release candidates". So if you have time
to do any testing that would be appreciated. I'm not going to make
any changes to the "master" sources other than bug fixes before the
I'm trying to determine the quantile value (as a scalar) for a list of series and I really don't know how to do it. Let's say I want p=0.7 on the following example:
list list_mv = F_GM F_CH F_GE F_WE F_US
Basically I have a list of 5 series with market values and I want to determine extreme values in order to proceed with winsorisation. But the quantile function seems not tailored for this.
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:
is there a facility to plot the entries of a complex matrix (recent
gretl feature) in the cartesian plane? Similar to what is built-in as
the plot of the VAR roots, but for arbitrary input and in other contexts.
thanks for any hints
I just want to inform you about my new official gretl package called
"auto_arima". It returns the best SARIMAX model according to either the
AIC, the AICc, the BIC or the HQC information criteria. The function
conducts a (brute force) search over possible model within the order
The main features are:
* Consideration of seasonal ARIMA models with and without exogenous
* Fine tuning the parameter space to evaluate.
* Simple API.
* GUI access through the gretl menu.
* Public convenience functions for the user for summarizing results,
or retrieving the gretl ARIMA command of the 'best' model.
* Source code is tested by means of unit-tests to minimize bugs.
It's already available on the gretl package server.
For a brief introduction see also here: