Got droppped from the mailing list
by atecon@posteo.de
Dear all,
for some reason my mailing-list account was deleted. I just registered for a new one. Did anyone experience something similar during the past 2 days?
Artur
4 years, 8 months
add time-observations for panel data
by Artur Tarassow
Hi all,
I would like to add additional time-dimensions (n observations) for each
unit in a panel. I've tried to make use of the <dataset addobs> command
but it does, instead, add a whole new unit:
<hansl>
clear
set verbose off
nulldata 6 -p
genr index
series unit = cum(((index-1) % 3) == 0)
series time = vec(cum(mshape(ones(6,1),3,2)))
setobs unit time --panel-vars
dataset addobs 3 # stacks time-series of length 3 for a 'new' unit
print dataset -o
</hansl>
Is there a 'clever' way to expand the time-dimension while leaving the
unit-dimension untouched?
Thanks,
Artur
4 years, 8 months
Problems in building gretl on ubuntu system
by Schmidt, Joachim
Dear all,
I am working at a research institute in Germany and I would like to realize a project by means of gretl.
At the beginning I have to admit that I hopefully have quite detailled knowledge about time series in theory but I am not really a linux expert.
So I apologize for some inaccuracies in advance. The good news is that my collegue is a computer scientist and can assist me quite well.
We are looking for a straight-forward method to be able:
- to call gretl routines by c/c++ function or member calls (instead of using interactive scripts),
- writing and reading to/from the according data structures at c/c++ level,
- compiling all that stuff by gcc under linux.
Since we know that gretl itself is a lib written in c or c++ that should be possible.
Finally my collegue and me will realize the software on a RaspberryPi 4.
At the moment we realize our trials on a virtual machine using VirtualBox (Ubuntu 64bit).
Similar to the situation reported HERE ...
https://www.mail-archive.com/gretl-users@gretlml.univpm.it/msg11637.html
... we are (despite all our efforts) not able to compile a c/c++ - program using the gretl-library.
From the topic point of view the nearest discussion in the gretl users mailing list is the issue reported by Ignacio Diaz-Emparanza:
https://gretlml.univpm.it/hyperkitty/list/gretl-users@gretlml.univpm.it/m...
We on our side tried to compile and link our code similar to the following scheme:
cc -g -O2 -Wall -I/usr/local/include \
-I/usr/include/libxml2 \
-I/usr/include/glib-2.0 \
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include \
-DPREFIX=\"/usr/local\" -fopenmp \
simple_client.c -o simple_client -L/usr/local/lib \
-lgretl-1.0 -lm -lxml2 -lfftw3 -lglib-2.0 -lglib
We got an error message: glib.h was not found!
We couldn't fix that problem even though we updated glib by "sudo apt-get install libglib2.0-dev".
So my questions would be as follows:
1. Is there a quite detailled description on the method of the things we want to do (particularly in ubuntu systems and/or for Raspberry Pi 4)?
2. Even more helpful: is there anyone who might help us directly?
Any remarks would be helpful.
Thank you in advance.
Mit freundlichen Grüßen/Best regards
Dipl.-Math. Joachim Schmidt
Wissenschaftlicher Mitarbeiter
Forschungsbereich Prozesstechnik
Fachbereich Mess- und Automatisierungstechnik
Tel.: +49 (0) 3643 / 8684-182
j.schmidt(a)iab-weimar.de<mailto:j.schmidt@iab-weimar.de>
[http://iab-weimar.de/signature/FB_prozesstechnik/FaB_messtechnik/2.jpg]<https://www.iab-weimar.de/veranstaltungen/>
--------------------------------------------------------------------
IAB - INSTITUT FÜR ANGEWANDTE BAUFORSCHUNG WEIMAR gemeinnützige GmbH
--------------------------------------------------------------------
Über der Nonnenwiese 1 Institutsdirektor: Dr.-Ing. Ulrich Palzer
99428 Weimar
Tel.: +49 3643 8684-0
Fax.: +49 3643 8684-113
kontakt(a)iab-weimar.de<mailto:kontakt@iab-weimar.de> USt.-IdNr. DE 278640272
www.iab-weimar.de<http://www.iab-weimar.de/> Amtsgericht Jena HRB 507304
--------------------------------------------------------------------
Diese E-Mail ist vertraulich. Eine Veröffentlichung, Vervielfältigung oder Wiedergabe durch
Dritte ist unzulässig. Sind Sie nicht der Adressat informieren Sie bitte den Absender und
löschen Sie die E-Mail. Da die Nachricht weder verschlüsselt noch signiert ist, kann eine
Kenntnisnahme durch Dritte nicht ausgeschlossen werden. Die E-Mail kann auch durch Zugriff
Dritter verändert oder verfälscht werden.
4 years, 8 months
Passing arguments from bash to gretl
by Artur Tarassow
Oh dear,
almost on a daily base I need to pass arguments from a shell script to
gretl . Currently I am using the "scriptopt" option when executing the
gretlcli client. A specific scriptopt ID retrieves some linked bundle
where further information are stored -- which can be tedious to maintain.
But just by luck I saw Jack's comment on this issue on stackoverflow
from 2017:
https://stackoverflow.com/a/44465980/13028724
I was never aware of both the getenv() and ngetenv() functions. But this
makes a lot of stuff easier for me and maybe some other gretl users.
Best,
Artur
4 years, 8 months
Re: gretl 2020a Windows 64bit
by Alecos Papadopoulos
Thanks Allin.
I confirm that both issues below work fine in gretl 2020a Windows 64bit
<<Adding a saved text object to a gretl session should trigger
session_changed status. >>
IT DOES
<<
/(In the good old days...) /
One could open first a .gretl file, then open a .inp file, choose "No" to the
question "Start a new gretl instance?" and the two would be linked and the
script in the .inp file could draw data from the .gretl file immediately,
without the script in the .inp file containing a command to that effect.
But also, one could start by opening first the .inp file, etc. and things
worked the same way.
Not in the 2019d version though. Here it appears it only works if one opens
first the .inp file and then the .gretl file, but not the other way around.
--
ALLIN: This issue is
now fixed in git and snapshots. It was specific to MS Windows, and
also specific to the case where the initial gretl instance had a
session file (*.gretl) loaded.
>>
IT IS INDEED FIXED in gretl 2020a Windows 64bit
--
Alecos Papadopoulos PhD
Athens University of Economics and Business
web: alecospapadopoulos.wordpress.com/
skype:alecos.papadopoulos
It's now available; seehttp://gretl.sourceforge.net
Allin
4 years, 9 months
Re: Hobby project: Forecasting COVID-19 confirmed cases
by Artur Tarassow
Am 04.03.20 um 20:40 schrieb Clive Nicholas:
> Thanks Artur, but it's still not a clear step-by-step guide to run
> your program.
>
> What does
> |1) Clone the repo by means of ```git clone```|
> mean?
>
Hi,
one can also simply download the whole project from here:
https://github.com/atecon/covid_19_forecast/archive/master.zip
This involves all files you see here:
https://github.com/atecon/covid_19_forecast
Alternatively one need to get familiar with the versioning tool "git" --
the net is full of introductions on how to use git.
Once git is installed, you can download the project via the "git clone"
command. A related example can be found here:
http://gretl.sourceforge.net/gretl-git-basics.html
Best,
Artur
> Every step needs to be spelled out in detail command by command if you
> want people to use your code, as I would do if it were my project.
> Don't assume familiarity! For instance, I simply saved the script as
> run.inp in my -gretl- folder and then ran it. Nothing happened,
> probably because I didn't first engage in this -git clone- business.
> That's what I mean.
>
> Cheers, Clive
>
> On Wed, 4 Mar 2020 at 18:49, Artur Tarassow <atecon(a)posteo.de
> <mailto:atecon@posteo.de>> wrote:
>
> Am 04.03.20 um 02:21 schrieb Clive Nicholas:
> > That's a fabulous project Artur - well done!
> >
> > Is it possible for you to run me through how EXACTLY you run the
> > program in -gretl-, as the options as laid out in GitHub are a bit
> > general!
> >
> > Ta, Clive
> >
> Hi Clive,
>
> Glad you like it. I've just added further information to the page.
> Hopefully that helps. In principle you simply need to run the script
> "./script/run.inp" after having set the parameter "DIR_WORK".
>
> Best,
> Artur
>
>
>
>
>
> --
> Clive Nicholas
>
> "My colleagues in the social sciences talk a great deal about
> methodology. I prefer to call it style." -- Freeman J. Dyson
4 years, 9 months
Hobby project: Forecasting COVID-19 confirmed cases
by Artur Tarassow
Hi all,
let me make some advertisement for a hobby project I've realized last
weekend. The John Hopkins University publishes public data on world-wide
contagion of the virus. So I thought "Let's make use of it!"
I've build a small job which automatically downloads a csv (scheduled
via a cron job) and transforms data into a panel. Next, the job computes
7-days ahead forecasts based on latest available daily data for various
country-province combination. Freshly compiled plots are uploaded to
github. The underlying model is of the simple ARIMA type -- nothing
fancy as it's mainly for for illustration on how to use gretl for such a
task.
By the way, the job is running on a Raspberry 4 with 2GB RAM -- and just
works nicely. It wasn't difficult to compile gretl on it and required
dependencies are almost the same as for an Ubuntu system.
Code and up to date plots can be found here:
https://github.com/atecon/covid_19_forecast
Enjoy,
Artur
4 years, 9 months
Twitter milestone
by Sven Schreiber
Hi,
thanks to our Tweeter-in-chief Artur who is managing @gretl_stats on
Twitter and who has now reached the 400 follower threshold!
If you have suggestions for what could be tweeted (gretl related, of
course!) one option is to post it here I guess. Or if you're on Twitter
yourself, then of course you know what to do...
cheers
sven
4 years, 9 months