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
1 year
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, 3 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, 9 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
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
-------------------------------------------------------
4 years
split dependent variable: looking for a test
by Allin Cottrell
This question is not gretl-specific, but answers might show up gretl
features and hopefully it may be of interest.
My dependent variable is the quantity demanded of a certain good, an
hourly time series extending over two years. It exhibits strong
seasonality, both by hour of the day and season of the year; it has
an upward trend; and it's clearly affected by various measures of
weather (temperature, humidity, wind speed). Plain OLS produces
quite a decent fit, but by inspecting the loglikelihood-for-level
figure produced by gretl (via the Jacobian) I can see that taking
the log of the dependent variable gives a better fit. All fine.
However, total demand is the sum of demand from two classes of
consumer -- call them A and B -- and I'm wondering if a better fit
can be obtained by summing the fitted values from separate
regressions, with dependent variables the demand from consumers A
and B respectively. (Note: a Chow test in dummy variable mode is not
applicable, the unit of observation is the hour, not the
transaction.)
My thought was: compute two SSRs in levels, using (restricted) the
exponentiated fitted values from the overall model and
(unrestricted) the sum of the exponentiated fitted values from the
two consumer-class models, then calculate an F test based on the
difference of SSRs in the usual way.
Questions: Does this sound valid? Is there a better way of doing it?
[I'm aware of debate over how best to produce predictions of levels
from log-linear regression, but I'm not sure quite how it applies in
this case.]
Allin Cottrell
4 years, 1 month
gretl 2020e released
by Allin Cottrell
Apologies to anyone receiving multiple copies of this message, but
the gretl 2020e release is now available at
http://gretl.sourceforge.net/
It offers the following list of new features and fixes:
2020-11-21 version 2020e
- New function tdisagg() for temporal disaggregation
(distribution and interpolation)
- New addon package "regls": supports LASSO, Ridge regression
and Elastic net
- New function assert() for debugging purposes
- MPI: update documentation and support transfer of more
data types
- kdensity() function: generalize to allow as argument a
list or matrix with more than one column
- "dataset sortby": handle sorting by string-valued series
- OLS output: don't print out DW statistic when calculation of
Durbin's h fails
- Fix: when extracting a column of a "dated" matrix, copy
across the dates information
- Documentation: add material on forecasting for VARs and
other multi-equation systems
- Improve format of panel plot when there are many unnamed
individuals
- gretlcli and gretlmpi on MS Windows: accept unicode filenames
on the command line
- "midasreg" command: be more flexible in parsing arguments to
mds() terms
- Add to practice scripts: simulation using Klein model
- Implement the '^' operator (logical product) for string-
valued series
- xlsx data importer: handle correctly the case where a given
column is "partially" string-valued
- dbnomics data importer: handle absence of dimensions_labels
in some cases
- mpiscatter() function: revise rule for dividing matrices
for greater efficiency
- Fix bug: possibility of invalid XML when saving a model to
session file
- Fix bug: "smpl" command rejects the combination of "full"
and --quiet
- Fix: --single-yaxis option not respected by "gnuplot" and
"plot" when a band is specified
- Fix: GUI dialog for "join" was not working on Windows
- Fix: work around bug in Apple's LAPACK that could lead to
a crash when computing eigenvalues
- Fix: the Preview button in print dialogs was not working
in macOS build
- Fix: prune correctly the regressor list in the "perfect
prediction" case in RE probit
- Fix: incorrect $vcv matrix for bivariate probit models
- Fix: dbnomics import misaligning data of different
frequencies in certain cases
- Fix: $obsmajor and friends not working for daily data
with non-trading days omitted and dates given in the old
form of YYYY/MM/DD; also "dataset pad-daily" not working
with such old-style dates
- Fix: potential crash on closing a maximized window on
recent macOS (a GDK problem)
- MS Windows build: support printing scripts with syntax
highlighting
- MS Windows build (64-bit): update pixman, cairo and pango
libraries (DLLs)
- MS Windows build: update libeay.dll so as to prevent
crashes on certain CPUs
- MS Windows: give up on trying to write downloaded PDFs
and function packages to "system" location -- go straight
to the user's filespace
- Update packaged fedstl database
- Update several translations
--
Allin Cottrell
Department of Economics
Wake Forest University
4 years, 1 month
Re: Unexpected symbol '§'
by Marcelo Duarte
Hello everyone,
Thanks for the fast answers.
I have realised what hapened.
One variable name had a character not recognised by Gretl (either a tilde
or a cedilla).
The database came from SPSS, which allows this special characters.
Thanks once again.
Marcelo
> Date: Fri, 20 Nov 2020 17:46:43 +0100
> From: Artur Tarassow <atecon(a)posteo.de>
> Subject: [Gretl-users] Re: Unexpected symbol '§'
> To: gretl-users(a)gretlml.univpm.it
> Message-ID: <4157440f-a5fd-4ba7-1f15-0195a88a1af1(a)posteo.de>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Am 20.11.20 um 17:41 schrieb Marcelo Duarte:
> > Hello,
> >
> > When trying to obtain summary statistics of a variable I have got this
> > error message:
> >
> > Unexpected symbol '§'
> >
> > I have scoured the database looking for a problem but encountered
> > nothing wrong.
> >
> > I am running Gretl 2020e_git (2020-11-17) on windows 10 64bit.
> > I would attach an error log but I do not know how to do that?
>
> Hi Marcelo,
>
> could you give is some a code example of what steps you're executing,
> please? Also, is there any variable name that includes that "§" symbol?
>
> Artur
>
> ------------------------------
>
> Date: Fri, 20 Nov 2020 16:48:00 +0000
> From: Hélio Guilherme <helioxentric(a)gmail.com>
> Subject: [Gretl-users] Re: Unexpected symbol '§'
> To: Gretl list <gretl-users(a)gretlml.univpm.it>
> Message-ID:
> <
> CABNCgGRLM-WY49_j4djDDsfEEt+LpOxYmap9XreaPoCEaF50sQ(a)mail.gmail.com>
> Content-Type: multipart/alternative;
> boundary="00000000000028e36c05b48c9c8a"
>
> --00000000000028e36c05b48c9c8a
> Content-Type: text/plain; charset="UTF-8"
> Content-Transfer-Encoding: quoted-printable
>
> Hello Marcelo,
>
> The problem could be in the translation file (I suspect you may be using
> some PT translation). If that is the case, then you can confirm that the
> problem does not happen when running in English:
> In a command window/shell or terminal you could start with "gretl -e"
> Repeat then the Summary Statistics for the variable and confirm if the
> error does not show.
>
> Thanks.
>
> On Fri, Nov 20, 2020 at 4:41 PM Marcelo Duarte <mpduarte84(a)gmail.com>
> wrote=
> :
>
> > Hello,
> >
> > When trying to obtain summary statistics of a variable I have got this
> > error message:
> >
> > Unexpected symbol '=C2=A7'
> >
> >
>
>
> > I have scoured the database looking for a problem but encountered nothing
> > wrong.
> >
> > I am running Gretl 2020e_git (2020-11-17) on windows 10 64bit.
> > I would attach an error log but I do not know how to do that?
> >
> > Thank you in advance for your help.
> >
> > Best regards,
> > Marcelo
> > _______________________________________________
> > 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/
> >
>
> --00000000000028e36c05b48c9c8a
> Content-Type: text/html; charset="UTF-8"
> Content-Transfer-Encoding: quoted-printable
>
> <div dir=3D"ltr"><div>Hello Marcelo,</div><div><br></div><div>The problem
> c=
> ould be in the translation file (I suspect you may be using some PT
> transla=
> tion). If that=C2=A0is the case, then you can confirm that the problem
> does=
> not happen when running in English:</div><div>In a command window/shell
> or=
> terminal you could start with "gretl -e"</div><div>Repeat then
> t=
> he Summary Statistics for the variable and confirm if the error does not
> sh=
> ow.</div><div><br></div><div>Thanks.</div><br><div
> class=3D"gmail_quote"><d=
> iv dir=3D"ltr" class=3D"gmail_attr">On Fri, Nov 20, 2020 at 4:41 PM
> Marcelo=
> Duarte <<a href=3D"mailto:mpduarte84@gmail.com">mpduarte84(a)gmail.com
> </a=
> >> wrote:<br></div><blockquote class=3D"gmail_quote"
> style=3D"margin:0px=
> 0px 0px 0.8ex;border-left:1px solid
> rgb(204,204,204);padding-left:1ex"><di=
> v dir=3D"ltr"><div>Hello,</div><div><br></div><div>When trying to obtain
> su=
> mmary statistics of a variable I have got this error
> message:</div><div><br=
> ></div><div>Unexpected symbol
> '=C2=A7'<br></div><div><br></div></di=
> v></blockquote><div><br></div><div>=C2=A0</div><blockquote
> class=3D"gmail_q=
> uote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid
> rgb(204,204,2=
> 04);padding-left:1ex"><div dir=3D"ltr"><div></div><div>I have scoured the
> d=
> atabase looking for a problem but encountered nothing
> wrong.</div><div><br>=
> </div><div>I am running Gretl 2020e_git (2020-11-17) on windows 10
> 64bit.</=
> div><div>I would attach an error log but I do not know how to do
> that?</div=
> ><div><br></div><div>Thank you in advance for your
> help.</div><div><br></di=
> v><div>Best regards,</div><div>Marcelo<br></div></div>
> _______________________________________________<br>
> Gretl-users mailing list -- <a href=3D"mailto:
> gretl-users(a)gretlml.univpm.it=
> " target=3D"_blank">gretl-users(a)gretlml.univpm.it</a><br>
> To unsubscribe send an email to <a href=3D"mailto:
> gretl-users-leave@gretlml=
> .univpm.it" target=3D"_blank">gretl-users-leave(a)gretlml.univpm.it</a><br>
> Website: <a href=3D"
> https://gretlml.univpm.it/postorius/lists/gretl-users.g=
> retlml.univpm.it/" rel=3D"noreferrer" target=3D"_blank">
> https://gretlml.uni=
> vpm.it/postorius/lists/gretl-users.gretlml.univpm.it/</a><br>
> </blockquote></div></div>
>
4 years, 2 months
boxplots C/C++ API
by riles@triton.net
Hello
I am a bit lost when using the function-> boxplots (const int *list, const char *literal, const DATASET *dset, gretlopt opt)
When dset contains data I get the error-> *** error: allocate_Z called with non-NULL Z, and if dset have no data then I don't know how it would make a boxplot for the data.
Any thoughts on how I would use the C/C++ API to make boxplots?
Thank you
Riley
4 years, 2 months