Not able to open .gretl session files in a loop
by Fred Engst
Hi Allin and all,
I have a need to loop through quit a few .gretl files, but found that I can’t do that like I do with .gdt files.
As I tried to figure out why, instead of looping .gretl files, if I just using a script to open one of them, there is a message about: “Opening a new session file will automatically close the current session. Any unsaved work will be lost. Proceed to open session file?”
There seems to be no way to turn off this warning.
Any suggestion?
Fred
3 years, 9 months
RE Storing random generated series
by George Matysiak
I have a loop for generating 50 random series and would like to
export/store them. What would be the most efficient way to do this? Thanks.
George
3 years, 9 months
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
3 years, 9 months
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
> ********************************************
3 years, 9 months
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
3 years, 9 months
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
-------------------------------------------------------
3 years, 9 months
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
3 years, 10 months
"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
3 years, 10 months
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
3 years, 10 months