Apologies for cross-posting, but here's the change log for the 2021c
release, now available at http://gretl.sourceforge.net/
2021-08-30 version 2021c
- New function contains(): indicates whether a numerical
object contains members of a specified set
- New function bcheck(): aids in handling bundle arguments
to user-defined functions
- New command "panspec": substantially, the old "hausman"
command under a different name; for the moment, "hausman"
is still kept as an alias for backward compatibility
- fcstats() matrix row labels: distinguish U1 vs U2 variant
of Theil's U statistic
- msplitby(): allow for more flexible syntax
- printing of bundles: sort members by type and key
- "print" command: make more flexible, it now includes
most of the functionality of "eval"
- "var" command with --lagselect option: add a --minlag
option to allow testing against 0 lags, or imposing the
assumption that at least p > 1 lags are needed
- "set" command: new variable "datacols" to control the max
number of series to print side by side
- "foreign" command mechanism: updates to support version
4.1.0 of R and version 8.0 of Ox Console
- "eval" command: introduce "=" as an alias
- extend the ".=" operator to the "strings .= string" case
- GUI: introduce experimental features: plot collections and
- GUI: add option to use the tab key as the trigger for
autocompletion in the script editor and console
- GUI: add command-line options: --new to start a new gretl
instance unconditionally and --single to use a single
program instance unconditionally
- GUI script editor: make the Find box appear at the foot of
the window, not in a separate dialog
- GUI: provide larger (24 pixel) toolbar icons for use on
small, high-density displays in particular
- GUI: numerous other small fixes and enhancements
- MS Windows, 64-bit: update to gnuplot 5.4.1, patched to
avoid too-big fonts on Windows with Ultra HD display
- Fix bug: spurious results from "system" command in case of
- Fix bug: spurious reduction of the sample range in the grid
variant of "panplot" with some patterns of missing values
- Fix bug: wrong results from the polyfit() function when
applied to panel data
- Numerous additional small bug fixes
- Internals: make "libset" code more compact and efficient
- Internals: clear out old gettext variants that encoded
translations in a Windows code page rather than UTF-8
- gretl_bundle.h: rename argument named "template" to avoid
trouble with C++
- Substantial enhancements to the SVAR and regls addons
- New "logging" addon
- New, substantially updated Russian translation
- Cleanup: remove the "arbond" command, in favor of "dpanel",
and add some dpanel enhancements
Department of Economics
Wake Forest University, NC
We've just realized there's a problem with the gretl 2021c package for
M1 Macs: the gnuplot executable has some incorrect library links,
meaning that it won't start -- so gretl can't create any plots.
This is fixed in a new package uploaded earlier today. If you happen
to know of anyone who downloaded the broken M1 package, please pass on
the word that there's now a fix.
One point to add: the fixed package now on sourceforge is not
"notarized", so to install it you'll have to bypass Apple security, as
explained at http://gretl.sourceforge.net/osx.html By tomorrow there
will be a notarized version of the fixed package in place.
on behalf of the development team, I'm glad to announce that we're
about to release gretl 2021c. The official release will take place in
a week or so, but you can already see what's new by downloading and
installing the 2021c release candidate:
Mac OS (Intel):
Mac OS (M1):
To have a quick idea of what the new stuff is, take look at the
In fact, we'd appreciate it very much if you could give these versions a
good go: we have tried to squash all the bugs we were aware of, but you
can never be 100% sure, so please hammer on the release candidates as much
as you can. Some of the new GUI features are somewhat experimental, so
we'd be grateful if you could try them out. To enable them, go to
Tools>Preferences>General and look for the following:
1) the "plot collection" feature (multiple plots in one window); see
the help for "set plot_collection"
2) the "Main window includes console" feature (try it for yourselves,
I don't want to spoil it for you).
Between now and the official release, we'll only fix any bugs you may
report (no new features), and give the translators some time to send us
updates of the PO files. As of now, the only localisations that are 100%
complete are Italian and Russian (thanks to Olesya Petrenko).
Should you have any question or comment, please feel free to contact
any of us.
PS: Linux people will have to download the source and compile it
themselves; the source code is at
If you need guidance on how to build, have a look at Appendix B in the
User's Guide, or watch the excellent video by Clive Nicholas:
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
I am trying to install the latest snapshot today (30/8) and I am getting
An error occurred while trying to rename a file in the destination
directory: MoveFile failed; code 5.
Access is denied.
(I am on Windows)
I'm wondering why the cmod() function is needed. It computes the modulus
of a complex number (or many of them in a matrix), OK fine. But so does
abs(). And abs() also works on plain real numbers, where cmod cannot be
used. Could it be a path-dependent thing: first abs() didn't cover
complex numbers but then rendered cmod() obsolete by also working on
those? Or is there anything else which I'm missing?
Otherwise, maybe a case for deprecating or hiding cmod?
While the forecast GUI option with OLS and ARIMA provides a printable
table of actual, fitted and residual, I can see no way of retrieving and
adding the fitted/residuals as seperate series in the data file from
the Analysis option. As it is often the case that the dependent variable
series is a transformation of another original data series (eg log), it
would be helpful if the fitted series displayed in log values could be
retrieved to preclude the necessity for creating a new variable and
manually entering the data for subsequent reconversion to the original
unlogged fitted values.
Perhaps there is an option to do this but I cannot see where it might be.
Brian J Revell
Harper Adams University , Shropshire
Current Chair of Defra Economic Advisory Panel
Tel 01952 815237
Tel: +44 1952 728153
Mbl +44 7976 538712
University: +44 1952 815235
alt: email: bjrevell(a)harper-adams.ac.uk
I have been trying to use the Bai-Perron structural breaks tests, and always get the following message:
The variable X is read-only*** error in function SB_GUI, line 7> list X = !nelem(X) ? null : X
What am I doing wrong: