Function to get the powerset
by Henrique Andrade
Dear Gretl Community,
I really stuck trying to define a function that gives a power set of a
set. Suppose I have a set S:
S = {"A", "B", "C"}
The associated power set, P(S), is:
P(S) = {{ }, {"A"}, {"B"}, {"C"}, {"A", "B"}, {"A", "C"}, {"B", "C"},
{"A", "B", "C"}}
All that I can think by now (shame on me!) is this:
strings S = defarray("A", "B", "C")
scalar P_S_len = 2^nelem(S) # the size of the power set
strings P_S = array(P_S_len) # an array with 8 spaces.
Does anyone have any ideas?
Best,
Henrique Andrade
6 years, 3 months
Checking for lagged endogenous terms
by Sven Schreiber
Hi,
is there a way to find out with script programming if and how many
lagged endogenous terms have been included in a single equation estimation?
The background is that I want to write a function doing some
forecasting-related stuff (beyond what's already built in), using the
results in the $model accessor.
In an equation system in gretl I'd say it's possible to get this
information by looking at $sysA (in combination with $ylist). Similarly
in a VAR/VECM. But in a single equation?
I think internally gretl "knows" about the lags already, or it couldn't
do forecasts properly. The question is how to get this information via
hansl scripts.
thanks for any hints or workarounds,
sven
7 years, 7 months
gretl 2017b
by Allin Cottrell
For anyone not on the "announce" list: the gretl 2017b release is now
on sourceforge [ http://gretl.sourceforge.net/ ].
--
Allin Cottrell
Department of Economics
Wake Forest University, NC
7 years, 8 months
packages for forecast error loss
by Sven Schreiber
Dear gretl users,
this is just to let you know that the package loss_functions.gfn has
been removed from the package server. It seemed to have some issues and
the package author was not available (via email) to address them.
If you need to do something with forecast error losses you might try out
the "FEP" package (Forecast evaluation package). In the version just
uploaded today there is a new function getLoss which provides
calculations according to some popular loss functions.
However, FEP and the function getLoss are by no means intended to be a
1:1 replacement for loss_functions. If you used loss_functions before
and you're missing some functionality, we would be interested in hearing
from you (via the list).
thanks,
sven
7 years, 8 months
yahoo download - google download
by guido giaume
Thank you for the hints.
At the moment I found google finance data. But not tested yet. It seems
they permit automated download, for some markets with a little changes
in tickers.
Guido
7 years, 8 months
"yahoo download" - bypassing download restriction
by guido giaume
Hi all
maybe you know, last tuesday Yahoo finance denied automated download of
historical data, putting a mandatory "ID cookie" in the query of
download.
The good news
It seems to me the "ID cookie" is unique for every query caming from a
single browser.
E.G. I opened another browser in my machine and the cookie changed, BUT
when I asked another series of data, did not.
I find this right now, so I dont know if the "ID cookie" changes day by
day.
I think a rough way to bypass the restriction is quite simple.
a) Manually find the our own "ID cookie" (EG going with the mouse over
the download link, then reading the last part of the syntiax of the
query, at the bottom of windows )
b) put it in the query
The bad news
I cant write the changes by myself and so giving a service to the
community.
So please, could somebody verify my hypothesis and - if the trick is
good - writing the additional code, inserting a new voice in the yahoo
download menu (EG "Enter your cookie")? Could be sufficent BUT
moreover I suggest to delay in some way two successive query, to avoid
more stringent measures from Yahoo.
Regards
Guido
7 years, 8 months
GRETL instalattion on Ubuntu
by cociuba mihai
Hello,
I'm trying to install Gretl on another laptop from sources, Ubuntu 14.04.
After getting the sources, configuring the installation and using make
install when trying to open Gretl from cli the following error appears:
##########TERMINAL OUTPUT###################
acer@acer:~/gretl-git$ gretl
/usr/local/bin/gretl_x11: error while loading shared libraries:
libgretl-1.0.so.20: cannot open shared object file: No such file or
directory
acer@acer:~/gretl-git$ sudo ldconfig
acer@acer:~/gretl-git$ gretl
/usr/local/bin/gretl_x11: error while loading shared libraries:
libgretl-1.0.so.20: cannot open shared object file: No such file or
directory
acer@acer:~/gretl-git$
##############################################
Any thoughts on what I'm doing wrong?
Mihai
7 years, 8 months
conference
by ANA JESUS LOPEZ MENENDEZ
2. Re: 5th gretl conference program, Athens 2-3 june 2017 (A. T.)
7 years, 8 months