Gretl-Hansl "IDE" for Sublime editor
by Artur Tarassow
Dear all,
some weeks ago I've started to switch to the sublime editor
(https://www.sublimetext.com/) for writing gretl code.
Even though I like the simplicity of the gretl editor and its features
such as syntax highlighting and auto-itendation, it lacks some features
of modern IDEs such as "goto-anything", "goto-definition", custom
keybindings, fancy themes, git-implementation, snippets etc. which make
life much easier when working on larger projects. Don't get me wrong,
the gretl editor is great but was _never_ supposed to become a proper
software-development IDE but rather has another focus which is totally fine.
So I started to write the "Hansl-Gretl-Language" package for sublime
which includes the following features:
- 3 gretl build-systems (client mode, batch mode, and REPL mode) for
executing hansl code by means of sublime (plots are also working!)
- syntax-highlighting
- completion of gretl commands, accessors and keywords
- some snippet examples for speeding up coding
The project still has the following (known) issues:
- no auto-itendation (still have to figure out how this works)
- issues with some corner-cases which are not syntax-highlighted (regex
can become so hard!)
The package can be downloaded through sublimes package control system,
and can be found here:
https://packagecontrol.io/packages/Hansl-Gretl-Language
If somebody wants to participate on this project, check out the code on
my github repository:
https://github.com/atecon/Hansl-Gretl-Language
For those interesting in the sublime editor, check out "OdatNurd"'s
brilliant tutorials on youtube:
https://www.youtube.com/user/nurdz
Enjoy the package,
Artur
10 months, 2 weeks
Network Field Technician
by ashaikfe@gmail.com
A Network Field Technician is responsible for network development and maintenance in the field for any organization. The individual works with the organization’s technical team and its clients to install, configure, maintain, and fix all LAN/WAN and other equipment issues, ensuring efficient network functionality.
The technician maintains computer equipment, mobile devices, phones, cabling, routers, switches, and printers, among others, to address all of the client’s networking requirements either remotely or at the clients’ premises.
Read More: https://www.fieldengineer.com/skills/network-field-technician
3 years
Gretl & online teaching
by Stefano Fachin
Like Sven mentioned, conference programs like Meet, Teams and Skype have
the option of sharing the "desktop", which sends to the audience the
entire screen of the lecturer as seen by him/her (at least in Window, do
not know about Mac OS)
bye
Stefano
--
________________________________________________________
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, 8 months
Hamilton trend-cycle decomposition
by Riccardo (Jack) Lucchetti
Hi all,
yesterday, after having taught my students the HP decomposition, I
wondered if I should also tell them that one of the greatest time-series
econometricians on Earth recently wrote a rather scathing paper entitled
"Why You Should Never Use the Hodrick-Prescott Filter", where he proposes
a simple alternative.
So this morning I rustled up a little script with Hamilton's filter. Here
it is:
<hansl>
function series hamcycle(series y, bool do_plot[1], string title[null])
h0 = 2 * $pd
h1 = h0 + 4
list PROJ = y(-h0 to -h1)
ols y 0 PROJ -q
# ht = $yhat
hc = $uhat
if do_plot
if !exists(title)
title = argname(y)
endif
print title
diff8 = y - y(-h0)
setinfo diff8 --graph-name="Random walk"
setinfo hc --graph-name="Regression"
list PLT = diff8 hc
plot PLT
options time-series with-lines
literal set linetype 1 lc rgb "#ff0000"
literal set linetype 2 lc rgb "#000000"
literal set key top right
printf "set title '%s'", title
end plot --output=display
endif
return hc
end function
# example
nulldata 300
setobs 4 1947:1
open fedstl.bin
data gdpc1 expgsc1 pcecc96
list Y = gdpc1 expgsc1 pcecc96
LY = logs(Y)
strings Titles = strsplit("GDP Exports Consumption")
k = 1
# reproduce part of figure 6
loop foreach i LY --quiet
hc = hamcycle($i*100,,Titles[k++])
endloop
</hansl>
Should we turn this into a function package?
-------------------------------------------------------
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, 10 months
Functionality of functions meanc() - meanr()
by Alecos Papadopoulos
Gretl 2020d, Windows 64-bit.
I give the command
matrix meancolumnsB = meanc(B)
The matrix "meancolumnsB " is generated as a single-row matrix as
expected, but with "nan" in all its cells.
I can see the matrix B ok, it is a 10000 X 9 matrix, I can copy-paste
it, export it in spreadsheet etc.
What I observe is that there are 6 rows in the "B" matrix with "nan"
values.
So it appears that the meanc() function , in contrast to the mean()
function, cannot skip missing values?
If this is the case can we do something about it? The matrix B collects
results from MLE simulations, and there are various instances where we
are bound to get a "nan" value (the MLE did not converge, or the B may
collect the elements of the Hessian but the Hessian is not computable
and the algorithm drops back to OPG, etc)
Note: I also run
matrix meanrowsB = meanr(B)
Here, the result came out ok, with a "nan" result for the 6 rows of "B"
that were filled with "nan" originally. But what would happen if in some
row I would have some numbers and some "nan"? Will the meanr() return
then a "nan" result?
--
Alecos Papadopoulos PhD
Athens University of Economics and Business
web: alecospapadopoulos.wordpress.com/
skype:alecos.papadopoulos
4 years, 2 months
ols: using expressions with indepvars
by fmorkel@yahoo.de
Hi,
apparently, the ols command does not accept expressions for rhs variables, e.g.
ols a 0 b+c
Am I missing something and if not, are there any plans to change this?
Many thanks
Fred
4 years, 2 months
How to run gretl in a single window
by Sven Schreiber
Hi everybody,
here's a hackish way to collect all of gretl's appearing windows in a
single meta window. This could be useful for example if you want to
share only a single window in a video conference. (But note that some
video call tools handle gretl's multiple windows just fine, I've seen
and done it myself, without having to share the whole desktop.)
Another use case might be for people who want to keep gretl's windows
somehow separate from the rest.
Again beware, this is a hack, but so far it seems to work for me.
cheers,
sven
-----------------------------------------------------------------------
Longer title: How to run gretl (from Linux) on Windows 10 in a single
(browser) window
-----------------------------------------------------------------------
The trick is to use the Windows Subsystem for Linux (WSL) which comes
directly from Microsoft with Windows 10. See MS's documentation for how
to activate it or how to upgrade to version 2 which I'm using here. (It
might also work with WSL version 1, don't know.)
Inside WSL you need to install a Linux distro such as Debian or Ubuntu
or whatever - the important thing is that the included gretl version is
built with GTK3, not GTK2. I think this should apply to most modern
distros. MS offers some pre-configured distros as apps in the MS app store.
Of course, if you're already on Linux things are even simpler, so this
explanation is restricted to Windows 10.
The Linux system on WSL is command-line based, you cannot directly start
a graphical app there (yet). However, it turns out that you can use the
GTK3 feature called broadway to send the app's windows to a web browser,
and this even works when the browser is running natively on Windows 10
(which I found somewhat surprising).
So:
1) Start the Linux distro that is installed inside WSL. This works just
like starting any other program on Windows. You get a terminal window.
2) In that terminal window, type:
"broadwayd"
(with a "d" at the end, but without the quotes, and hitting Enter). You
should get a response line like "Listening on ... socket". You don't get
the terminal prompt back, this is just running "forever".
3) So start another Linux terminal just like the first one. Type:
"GDK_BACKEND=broadway gretl_x11"
Again, you shouldn't get the prompt back (unless there's an error).
4) Open a browser window in Windows (I used Firefox), and go to the
pseudo-page:
"localhost:8080"
-- Voilà: You get gretl's main window inside the browser window. It
looks different from the regular Windows version because it uses GTK3
instead of GTK2. The amazing thing is that you can click the menus and
so forth and new gretl windows are also shown inside the browser.
I'm attaching a screenshot as proof ;-)
I was even able to access my files on the C: drive from the WSL side
through the path /mnt/c.
One glitch that I observed is when I wanted to change gretl's language
setting I could not see the alert window saying "Changes will take
effect after a restart". I had to hit enter blindly to dismiss it. (But
then quitting gretl and restarting it did actually give me gretl in German.)
4 years, 2 months
Clarification related to the resample() gretl function
by Alecos Papadopoulos
When used with a matrix, the resample() function takes two /optional
/arguments.
Is it correct to write (for some matrix X)
matrix bootsample = resample(X,,m)
namely, "skip" in this way the first optional argument, while at the
same time specifying that the length of the bootstrap sample should be
smaller than the original?
If not, what would be the proper way to write this command, when we do
/not/ want "resampling by moving blocks", but we /do/ want to do an "m
out of n" bootstrap?
--
Alecos Papadopoulos PhD
Athens University of Economics and Business
web: alecospapadopoulos.wordpress.com/
skype:alecos.papadopoulos
4 years, 2 months