Fixed problems with decimal comma and some contributed packages
by Sven Schreiber
Hello everybody,
as you know, gretl is one of very few scientific programs that support
regional-specific settings for the decimal number separator. (It can
handle the decimal comma, except if you're scripting yourself with the
built-in hansl language, where the decimal point/period is mandatory
internally.)
Recently we found out that this support caused a bug with some
contributed packages, especially when they produce plots. The bug would
only bite if you ran gretl with a decimal comma setting. (Note that even
if you run gretl with a translated interface, you are not necessarily
using the decimal comma, because that also depends on the user setting
"use locale-specific decimal separator". For example, I typically run
gretl in German, but not with the decimal comma.)
We identified the following six affected packages and then asked the
respective authors to fix them with respect to this subtle bug:
* heatmap.gfn -- heatmap plots
* kddensity.gfn -- kernel estimation of bivariate densities
* gnuplot_piechart.gfn -- A simple 2D pie chart
* yahoo_get.gfn -- Downloader of daily financial data from Yahoo
* CUB.zip -- Uniform-Binomial mixture model for ordinal data
* MDS.gfn -- Multidimensional Scaling
These packages have now been updated and fixed. So if in the past they
failed when you tried them, perhaps you should try again with the new
versions!
Also, let me stress again that bug reports are very important. Of course
the individual package authors are responsible for their packages, but a
subtle bug like this one really cannot be blamed on anybody. So don't
hesitate to report failures of contributed function packages here on the
list.
cheers
Sven
3 years, 9 months
Warning: VECM forecast breakage with latest gretl version 2021a
by Sven Schreiber
Hello everybody,
let me relay some news here that unfortunately it seems that doing
(out-of-sample) forecasts with a VECM got broken in the current released
version of gretl (2021a). Apparently some internal changes that were not
supposed to affect anything had this unwanted side effect. So, time for
the gretl developers to expand the testing suite some more!
This bug is (hopefully) fixed in current snapshots. Depending on your
needs it might also be an option to temporarily downgrade to the
penultimate gretl version if you're affected by this bug. The good news
is that this bug in most cases probably would produce completely crazy
results that normally would not go unnoticed.
Apart from automated testing which has broader coverage with each gretl
release (mainly thanks to Allin and Artur), bugs like these are less
likely the more users help in testing and reporting bugs.
cheers
sven
3 years, 9 months
multiple instances in 2021a
by Stefano
Hi Sven,
in fact I cannot replicate it myself today... I am however sure that the
problem did happen yesterday, as I was sharing my screen on Skype with
Francesca while working on some code and we both noticed it. I suppose
as long as it works we do not need to worry about it :-)
Stefano
--
________________________________________________________________________
Stefano Fachin
Professore Ordinario di Statistica Economica
Dip. di Scienze Statistiche
"Sapienza" Università di Roma
P.le A. Moro 5 - 00185 Roma - Italia
Tel. +39-06-49910834
fax +39-06-49910072
web http://stefanofachin.site.uniroma1.it/
--
________________________________________________________
Le informazioni
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.
3 years, 9 months
Re: Defining a list of series before series are loaded, is it possible?
by Allin Cottrell
On Mon, 22 Mar 2021, Iago Varela wrote:
> It wouldn't, because {Dataset} would be a bunch of series, which
> aren't defined until the dataset is loaded.
>
> But thanks to Jack I think I've got to a solution [...]
Here's another idea you could try: ask for the list of variables as
a string, as in
vars_to_use = "y x1 x2"
Then you can use string substitution to create your list after the
dataset is open:
list L = @vars_to_use
Allin Cottrell
3 years, 9 months
Re: Defining a list of series before series are loaded, is it possible?
by Alecos Papadopoulos
Wouldn't this work?
matrix A = {dataset}
list Datalist ={A}
Alecos Papadopoulos PhD
Athens University of Economics and Business
web: alecospapadopoulos.wordpress.com/
scholar:https://g.co/kgs/BqH2YU
On 22/3/2021 23:22, Iago Varela wrote:
> If I do:
>
> list lista = Exited Age Tenure
>
> I get: No dataset is in place in the console
>
> Let's say I ignore it and do afterwards:
>
> open mymodel.gdt --preserve
>
> print lista
>
> Then I get: The symbol 'lista' is undefined
>
> This is the script I'm working on https://pastebin.com/WrawUiLF
> <https://pastebin.com/WrawUiLF>
> <https://pastebin.com/WrawUiLF>
>
> #--------------------------------------------------------------------##
> - Pastebin.com <https://pastebin.com/WrawUiLF>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a
> website where you can store text online for a set period of time.
> pastebin.com
>
>
>
> ------------------------------------------------------------------------
> *De:* Sven Schreiber <svetosch(a)gmx.net>
> *Enviado:* lunes, 22 de marzo de 2021 21:09
> *Para:* gretl-users(a)gretlml.univpm.it <gretl-users(a)gretlml.univpm.it>
> *Asunto:* [Gretl-users] Re: Defining a list of series before series
> are loaded, is it possible?
> Am 22.03.2021 um 21:47 schrieb Iago Varela:
> > Hi all, I'm Yago again.
> >
> > So I'm struggling with a new thing.
> >
> > The script I'm writing asks the user to imput at the very top what
> > variables will be used as dependent and regressors for a logit model. I
> > wanted to put it at the top so any user imput is close and neat, and
> > there's no skim through code necessary.
> >
> > The problem is that I can't make a list before I have a dataset, I can't
> > make a list for series that are not defined before such list.
>
> Hi, I don't understand what the problem is. You can write anything like:
> list reg = x y z
>
> in a script even with no dataset loaded, and no series "x", "y", "z"
> present. Of course it won't _work_ before you load the data, but that's
> expected and cannot be avoided.
>
> So surely you're trying to achieve something different? Maybe a more
> concrete code example would help us understand.
>
> cheers
> sven
> _______________________________________________
> Gretl-users mailing list -- gretl-users(a)gretlml.univpm.it
> To unsubscribe send an email to gretl-users-leave(a)gretlml.univpm.it
> Website:
> https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/
> <https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/>
>
> _______________________________________________
> Gretl-users mailing list -- gretl-users(a)gretlml.univpm.it
> To unsubscribe send an email to gretl-users-leave(a)gretlml.univpm.it
> Website: https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/
3 years, 9 months
Re: Defining a list of series before series are loaded, is it possible?
by Sven Schreiber
Am 22.03.2021 um 21:47 schrieb Iago Varela:
> Hi all, I'm Yago again.
>
> So I'm struggling with a new thing.
>
> The script I'm writing asks the user to imput at the very top what
> variables will be used as dependent and regressors for a logit model. I
> wanted to put it at the top so any user imput is close and neat, and
> there's no skim through code necessary.
>
> The problem is that I can't make a list before I have a dataset, I can't
> make a list for series that are not defined before such list.
Hi, I don't understand what the problem is. You can write anything like:
list reg = x y z
in a script even with no dataset loaded, and no series "x", "y", "z"
present. Of course it won't _work_ before you load the data, but that's
expected and cannot be avoided.
So surely you're trying to achieve something different? Maybe a more
concrete code example would help us understand.
cheers
sven
3 years, 9 months