Little bug in labels command?
by Alecos Papadopoulos
I imported a data set from an excel file,
saved the session
created some new variables
executed the
/labels/
command with no arguments
and I only got the labels of the variables that I have created, not the
imported ones.
gretl 2022a, windows 7, 64bit
--
Alecos Papadopoulos PhD
Athens University of Economics and Business
web: alecospapadopoulos.wordpress.com/
scholar:https://g.co/kgs/BqH2YU
11 months, 2 weeks
Re: A possible bug?
by Fred Engst
Thanks so much Allin!
It’s not I wanted to “indulge” in such a file name, but my students might send me files with such a name.
Fred
>
> On Thu, Jun 16, 2022 at 2:12 AM Fred Engst <engst.uibe(a)gmail.com> wrote:
>>
>> Hi Allin and other contributors to gretl,
>> I found a strange behavior of gretl.
>> If the .gdt data file had an “&” in the file name, once I open it, save some models in the session, and then save the session as .gretl file, I can’t open it later.
>> The error message reads "xmlReadFile failed on /Users/fred/.gretl/.test/session.xml"
>> The same dataset without the “&” in the file name is fine.
>
> Well, '&' is a special character in the context of XML and a gretl
> session file is zipped XML. In git we now 'escape' the ampersand
> character, so people who want to indulge in such file names can have
> them.
>
> Allin
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> 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/
>
>
> ------------------------------
>
> End of Gretl-users Digest, Vol 185, Issue 10
> ********************************************
11 months, 2 weeks
A possible bug?
by Fred Engst
Hi Allin and other contributors to gretl,
I found a strange behavior of gretl.
If the .gdt data file had an “&” in the file name, once I open it, save some models in the session, and then save the session as .gretl file, I can’t open it later.
The error message reads "xmlReadFile failed on /Users/fred/.gretl/.test/session.xml"
The same dataset without the “&” in the file name is fine.
Fred
11 months, 2 weeks
fixed-effects logit package
by Riccardo (Jack) Lucchetti
Hi everybody.
I uploaded a new version of the "felogit" package for conditional ML
estimation of fixed-effects panel logit models (nothing revolutionary,
really: it's just Chamberlain (1980)).
I changed a few internals and the new code should be considerably faster
than the old one. From my experiments, felogit() is about 3 times faster
than the equivalent stata command (xtlogit with the fe option). However, a
few robustness checks wouldn't hurt 😉.
So, if you have a (preferably large) panel dataset to run a few checks,
I'd appreciate your feedback. Thanks!
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------
11 months, 3 weeks
Re: "join"two gdt panel data files (B) save them as time series
by Ioannis A. Venetis
Thanks Artur, Sven, Jack and Allin for your swift response!!!
Suggestions work beautifully (as usual).
I will be back tomorrow afternoon on this conversation. (Maybe i can
help by expanding the gretl User's guide file with a couple of examples
to help other users as well - beyond searching the gretl's lists).
Thanks again!!
Yiannis
11 months, 4 weeks
"join"two gdt panel data files (B) save them as time series
by Ioannis Venetis
Hello all,
I attach two gdt panel data files (is what I managed to do, TIME is a time
index, GEO lists 38 countries/regions, and two variables CP00, CP01),
example1.gdt goes from 2016:01-2018:12 and
example2.gdt goes from 2019:01-2022:04
(A) is there an "easy" way to "join" the two gdt files into one time-larger
file? running from 2016:01:-2022:04?
(B) how can i "easily" transform the panel dataset into a time-series set
with 38 CP00 series, say EU_CP00, EA_CP00,... and 38 CP01 series, EU_CP01,
EA_CP01,...?
PS = OK I admit "easy" is rather varue. I mean using the mouse menu route
or i guess a few hansl lines? (of course many more lines would be
also welcome if there is no other way ...).
Thanks
Yiannis
11 months, 4 weeks
tricks for permutation matrices and vectors?
by Sven Schreiber
Hi,
I'm wondering how I can easily construct the index vector associated
with a permutation matrix. Here's an example:
<hansl>
pvec = {3,1,2} # given index vector
matrix P = I(nelem(pvec))[pvec,] # associated permutation matrix
matrix PT = I(nelem(pvec))[,pvec] # transpose of that
wanted = {2,3,1} # associated with PT, how ??
</hansl>
Now, a verbose loop-based solution is quite obvious. But is there a
trick to construct the wanted index vector concisely and also for higher
dimensions, of course?
thanks
sven
12 months
more on scatter plot labels
by John Paravantis
I am talking about adding the values of a qualitative variable, e.g.
country codes, as labels.
As an example from my megacity research, imagine a scatter plot of carbon
footprint (y-axis) vs city population (x-axis). In such a plot, it would be
very useful if the data points were labeled with the megacity name.
So I am suggesting that two separate improvements be considered for gretl:
(1) Add the capability of handling qualitative (i.e. text) variables,
something that is sorely missing right now. I have to manually delete
columns containing text from Excel files that I want to open in gretl,
which is inconvenient. If anything else, gretl could ignore such columns,
not give an error and refuse to open such a file.
(2) Add the capability of adding a qualitative variable as labels of the
points of a scatter plot.
Many thanks to all for your thoughts,
John
On Wed, Jun 1, 2022 at 1:00 AM <gretl-users-request(a)gretlml.univpm.it>
wrote:
> Am 31.05.2022 um 00:19 schrieb John Paravantis:
> > If I may get back to my suggestion, I understand that it may be possible
> > to add data labels via commands, but it would appear to me that it would
> > not be too difficult to add an option of selecting the values of a
> > variable as labels, since the option of adding labels to individual
> > points is already built in in the edit dialog of a scatter plot.
>
> John, let me ask the more fundamental question, why would one want the
> values as labels? I mean in a scatter plot the values are on the axes
> and the location of the data point communicates those values already.
> OK, sometimes one wants to see the exact digits and then a kind of
> mouse-over tooltip effect is nice. But really printing/displaying the
> values right now does not sound to me like a natural GUI feature.
>
> cheers
> sven
>
1 year