Hi (especially Jack),
it occurred to me that from time to time we should update the syntax
specification for hansl that we once sent to the maintainer of the TeX
listings package. (Which provides syntax coloring in TeX documents; see
here for example:
Because there are some new functions that have accumulated over time.
This is just a reminder (also to self) for the future.
I'm not usually in the business of needing to do seasonal adjustment
myself, but it seems I will be, and I'm wondering about the following
things about gretl:
- The documentation still mostly talks about X12. This concerns the
contents or menu column on the left of the main web page, the page
http://gretl.sourceforge.net/x12a/x12a.html to which it leads, various
places in the user guide, and also stuff like the $x12a and $x12adir
accessors. Even though I know that x13 works as a drop-in replacement, I
find this situation confusing. Isn't X12 by now really obsolete?
- AFAICS, there is no hansl scripting way to actually call X13 and get
its output, is there? When I use the GUI to invoke X13, I find no trace
of that in the command log.
- For a couple of years now, the open-source software JDemetra+ is the
official thing to do seasonal adjustment in Europe.
(https://github.com/jdemetra) Unfortunately, as the name suggests, it is
Java-based. There is an official R wrapper. I guess it should be
feasible to write a hansl wrapper for the R wrapper as a function
package, which sounds more complicated than it would be, I think. Of
course, the core still runs on Java, which therefore needs to be installed.
I hope you've had happy holidays so far!
In the dialog for uploading new function packages I've noticed the
following URL string which I think is outdated:
Accordingly, the web page button on that dialog leads nowhere.
Let me point out a new feature in git and snapshots: you can now
create a string-valued series directly from an array of strings,
subject to the requirement that the length of the array matches
either the length of the dataset or the current sample range.
Here are two examples:
# string-valued series from scratch
strings S = defarray("a", "b", "c", "b", "a", "d", "b", "e")
series sx = S
series x = sx # numeric codes
print sx x --byobs
# convert observation markers to a series
series state = S
print state --byobs
(on Windows at least) I'm observing that dragging a gretl file (gdt,
inp) onto the gretl window doesn't work if it's on the
embedded/swallowed console area. This isn't a big deal, but I'm also
seeing that the cursor (mouse pointer) changes into the "drop here"
mode, as if it were allowed. But then nothing happens. (Dropping into
the usual main window area still works fine.)