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,
Hello, gretl users,
It is possible to the asymmetric effects using
waldTest.gfn . When I apply the following code (from previous tags) to
apply my programme ,I got the following message:
"A function definition must have a return type and name"
function restr (matrix *b) matrix ret = b/b - b/b return matrix
ret end function open data4-10 ols 1 0 2 3 4 5 restrict rfunc = restr end
Can you any one help and suggest the code ( or) function to test the
Hello Dhanasekaran, the best way to share your code is producing a
package function with and uploading to Gretl's server. This is actually
easy, a step-by-step guide is here
Professore Ordinario di Statistica Economica
Dip. di Scienze Statistiche
"Sapienza" Università di Roma
P.le A. Moro 5 - 00185 Roma - Italia
*Il tuo 5 diventa 1000 - *Fai crescere la tua università - Dona il 5 per
mille alla Sapienza
Codice fiscale: *80209930587*
contenute in questo messaggio di posta elettronica sono strettamente
riservate e indirizzate esclusivamente al destinatario. Si prega di non
leggere, fare copia, inoltrare a terzi o conservare tale messaggio se non
si è il legittimo destinatario dello stesso. Qualora tale messaggio sia
stato ricevuto per errore, si prega di restituirlo al mittente e di
cancellarlo permanentemente dal proprio computer.
The information contained
in this e mail message is strictly confidential and intended for the use of
the addressee only. If you are not the intended recipient, please do not
read, copy, forward or store it on your computer. If you have received the
message in error, please forward it back to the sender and delete it
permanently from your computer system.
Hi all Gretl Users,
I have written a programme for “Multidimensional
Poverty Index“ using Gretl which may be of interest for some one of us and
Gretl users. Sample data and script and its results are attached herewith.
Title : Multidimensional Poverty Index (MPI)
Author : Dhanasekaran Kuppusamy
EmailID: Dhanasekaran K<drgkdphd(a)gmail.com>
Description: Computes the Multidimensional Poverty Index developed by
Alkire and Foster (2011)
The Multidimensional Poverty Index (MPI) is a poverty measure developed by
OPHI and the United Nations Development Programme for UNDP’s flagship Human
Development Reports, and has been published in the reports since then.
the multiple deprivations that poor people face in the areas of education,
health, and living standards. This method is flexible and can be used with
different dimensions, indicators, weights and cutoffs to create measures
specific to different societies and situations.
during the last couple of days I had to use Python's popular
'statsmodels' package for estimating ARIMA type of models. Here is a
comparison with gretl's built-in apparatus for those who are interested:
To summarize: 'In terms of speed, statsmodels is no competitor at all.' ;-)
Let me add one thing: The computational heavy task is done in some
kalman-function which calls cython code which is written in C. However,
tt seems that there optimization algorithm is not well-programmed
compared to what Jack and Allin (maybe Sven?) have implemented. Well
done, guys! :-)
Please yr help with this issue
After performing a simple Linear regression (file attached) and asking for
a Breush Pagan Heterocedasticity test in Menu TEST I get the response below
Instead if square residual are saved and used as a Dependent variable
against above regressors the answer is different, please see below
Why does it happen?
please, I am waiting for your Help and advise
Thanks for all the great work that you’ve been doing.
There seems to be a bug when there are multiple instance of gretl working at the same time.
The versos of gretl I’m working on is 2020c-git built date 2020-05-29.
Here is a description of the problem that I’m facing:
Whenever I have more than one instance of gretl open, and if I closed one of them, then I’m not able to save the .gretl season file that I have created before.
The pattern of the error message is like: “.myfile/session.xml: No such file or directory”.
Other times, I get "Unspecified error” when trying to save a session file.
After a few cased like this, by trial and error, I found that if I start another instance of gretl, and then open the very same .gretl dataset that I was not able to save before, I can now switch back to the old gretl instance and save the session file that I was working on.
To make your job a bit easier, I created the following test steps that you should be able to replicate (at least I can on my Mac):
Quit all instance of gretl
Open the built-in sample file in gretl “banks91”, for example,
Open icon view
Type in any text
Save session file as “banks91_test” for example.
Open anther instance of gretl
Open another built-in sample file “credscore”, for example,
Open icon view
Type in any text
Save session file
Get back to the session with “banks91”
Open the Notes in icon view,
Here, if I delete the text in the Notes, I get an error that says: "Buffer is empty”.
If I make changes to the text, I’m able to save the Notes.
But now I’m not able to save the session file.
The error message reads:
".banks91_test/session.xml: No such file or directory”
My solution is:
Open another instance of gretl,
Open the session file “banks91_test” that I saved earlier
Do nothing here.
Switch back to the first session on the same file what I wasn’t able to save before
This time I’m able to save the session file.
I have other minor issues, too, but that is all for now.