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
12 months
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, 2 months
gretl crashes on expanding/closing windows... but probably a MacOs problem
by Artur Bala
Dear gretl developers,
On my MacOS High Sierra 10.13.6, if I "maximize" an output window - be it a
graphic, a script output or a model window - and "close" it
eventually clicking on "x", gretl (2020e-git) crashes; all windows get
closed including gretl's main window. A long and detailed system error
report is also produced (if it can help I can share it with you).
Best,
Artur
3 years, 8 months
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, 10 months
retrieve series name from within a function
by Artur Bala
Hi,
In the following code (as a simplified example), how do I retrieve the name
of the series Y so as the OLS output shows the actual name of the variable
instead of just "Y"? I use the "varnames()" for the X-list variables
names but couldn't come out with something feasible for Y
<\hansl
function matrix m (series Y , list X )
ols Y X
end function
<hansl>
Best,
Artur
3 years, 11 months
On leverage command
by Artur Bala
Dear all,
When I execute the "leverage --save" command on the command line, the
related series (lever, influ and dffits) are not shown in the Main windows
(but they are created) . Is this behaviour intended?
Moreover, if I save one of the 3 series with the command "series k=lever"
this makes appear on the Main window all the series produced by the
leverage command (along with the new "k" series).
Just for testing, I also tried the same commands in a script file. Nothing
strange happened and all the new generated series are shown right after the
leverage command is executed.
Best,
Artur
3 years, 11 months
State space modelling
by bjr.newmail@gmail.com
I wanted to estimate a model with a time varying parameter (on a simple linear trend) and would appreciate some guidance as I am not a programmer in Gretl's language.
1) Where in the GUI Model set of commands do you access the State Space modelling - is by writing the spec in the MLE option?
2) I loaded the example file AWM.gdt
3)Entered the commands below exactly as specified in the manual viz. Listing 34.4: Phillips curve on Euro data with time-varying slope
4) It died at the first line.
function void at_each_step(bundle *b)
b.obsymat = transp(b.mX[b.t,])
end function
open AWM.gdt --quiet
smpl 1974:1 1994:1
/* parameter initialization */
scalar b0 = mean(INFQ)
scalar s_obs = 0.1
scalar s_state = 0.1
/* bundle setup */
bundle B = ksetup(INFQ, 1, 1, 1)
matrix B.mX = {URX}
matrix B.depvar = {INFQ}
B.timevar_call = "at_each_step"
B.diffuse = 1
/* ML estimation of intercept and the two variances */
mle LL = err ? NA : B.llt
B.obsy = B.depvar - b0
B.obsvar = s_obs^2
B.statevar = s_state^2
err = kfilter(&B)
params b0 s_obs s_state
end mle
/* display the smoothed time-varying slope */
ksmooth(&B)
series tvar_b1hat = B.state[,1]
series tvar_b1se = sqrt(B.stvar[,1])
gnuplot tvar_b1hat --time-series --with-lines --output=display \
--band=tvar_b1hat,tvar_b1se,1.96 --band-style=fill
3 years, 11 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, 11 months
“using observations” in the estimation output
by Artur Bala
Hi all,
Ok, this is not such a great topic but I'm going to submit it anyway...
In an estimation output, gretl uses the expression "using observations...", for example:
for time series,
"Model 1: OLS, using observations 1952-1981 (T = 30)" (1)
or, for undated dataset,
"Model 1: OLS, using observations 1- 30” (2)
And this does make sense when all observations are in a row. When missing/uncomplete observations exist, gretl also provides additional information:
"Missing or incomplete observations dropped:" (3)
Now, when data are sub-sampled on a conditional criteria), (1) and (2) are (always?) reframed, for example,
"Model 1: OLS, using observations 1-13" (4)
and here "using observations..." loses its meaning given that the actual observations used in the estimation are not in a row anymore.
What if “using observations” in (4) be replaced simply by the number of observations used and additionnal info like (4) be provided informing the user that sub-sampled data are used. This will make a clear difference with (1) and (2)* the only cases when all observations used are in a row.
*Note than (2) is correct even for time series sub-sampled data but yet with all observations in a row.
Thank you for reading,
Best,
Artur
3 years, 12 months
LaTeX tabular view error
by Artur Bala
Hi Allin,
I encountered the following error message from the "Model window > LaTeX >
View > Tabular" menu (which is probably also a language related issue
(french) :
Échec de traitement du fichier TeX # translation: Failed to process the TeX
file
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded
format=pdflatex)
restricted \write18 enabled.
entering extended mode
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 84 language(s) loaded.
Testing around with the "Tabular option" dialog box, I realized that if I
uncheck the "Standard error" option, the table view works fine.
I first suspected the french accent not being handled properly as "st.
error" starts with an É, but there are still a lot of other words starting
with an É in the output being printed out correctly (and more generally, I
do not have any problem using LaTeX with french)
There's also a log file that gretl produces along with the error message
that I saved in case you may need to look at.
Best,
Artur
3 years, 12 months