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
9 months, 2 weeks
how to get the time periodicity of panel data (in a script)
by Sven Schreiber
Hi,
for a given panel dataset with embedded information about the time
dimension structure I want to obtain the periodicity in the time
direction; for example the value 4 if the data are quarterly (for
several cross units, of course, because we're in a panel). I know that
the $pd accessor doesn't work here because in a panel context it gives
me the total length of the time dimension (as documented).
I'm wondering whether there is a better (shorter) way than the following
hansl function and test cases:
<hansl>
function scalar pd_paneltime(void)
catch pd = nelem(seasonals())
if $error
return 1 # assume the case of non-seasonal data
# (but could also be simply no panel-time info)
else
return pd
endif
end function
# artificial example
nulldata 20
setobs 5 1:1 --stacked-time-series
setobs 4 1900:1 --panel-time # quarterly
eval pd_paneltime() # gives 4
# real example
open grunfeld # annual
eval pd_paneltime() # gives 1
</hansl>
thanks for any hints
Sven
2 years, 7 months
ketvals 0.9 released
by Riccardo (Jack) Lucchetti
OK, time for some plugging :)
Francesco Valentini and I have just released version 0.9 of the "ketvals"
package, that provides OLS and IV estimation of linear model with
time-varying parameters using a non-parametric technique developed by
Giraitis, Kapetnaios and others.
Download, enjoy, and send us bug reports!
-------------------------------------------------------
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
-------------------------------------------------------
2 years, 8 months
Panel Regression Model: Fixed Effect, Random Effects, or OLS Regression?
by 3J LEMA
Dear Experts,
1. If there is heterogeneity in the panel model/data, is it true that the
appropriate model is either the Fixed Effect or Random Effects model?
2. I want to choose the appropriate panel regression model when there are
autocorrelations, heterogeneity, multicollinearity, and non-normality. Any
guiding non-highly mathematical materials that you can suggest?
Thank you.
2 years, 8 months
Strange behavior of the ksmmoth function
by Paolo Chirico
Dears,
for a simulation study I want to repeat the estimate of a state space
model /N/ times. Repeating the estimate is not a problem, but if I call
the ksmooth function after each estimate (MLE block), gretl allows me it
on the first iteration, but not the following ones.
It appears that the function cannot find the bundle in subsequent iterations
This happens if the repetitions occur in a single script run.
Obviously it doesn't happen if every rep has its own run.
It's really strange!
Is it a bag or am I missing something?
Thanks,
Paolo
--
Paolo Chirico
Università del Piemonte Orientale
Dip. di Giurisprudenza e Scienze Politiche,
Economiche e Sociali (DIGSPES)
Alessandria, Italia
--
Questa email è stata esaminata alla ricerca di virus da AVG.
http://www.avg.com
2 years, 8 months
Is calling R script thread-safe in MPI context?
by Marcin Błażejowski
Hi,
suppose I have a R code which load gretldata via '--send-data' flag and
stores the results RES via 'gretl.export(RES, base)' and 'base' is
$mpirank based string. Is this thread-safe?
Marcin
--
Marcin Błażejowski
2 years, 8 months
On the use of Fixed Effect and Random Effects models for Panel Data
by 3J LEMA
I have read a blog stating that if there is heterogeneity in the panel
data the appropriate model is either the Fixed Effect or Random Effects
model, not the OLS Regression. Do you agree with the blogger?
I'm interested to know to determine the appropriate panel regression model
when there are autocorrelations, heterogeneity, multicollinearity, and
non-normality. Appreciate if you suggest a textbook that deals with the
OLS, FE, and RE models for panel data.
Thank you.
Lema
2 years, 8 months
PairPlot package v0.8
by Artur T.
Hi gretl users,
there has been an update of the PairPlot package which may be of
interest for some of you. The recent version is 0.8, and it includes a
couple of bug fixes. The changelog is:
Version 0.8 (January 2022):
- Handle eventual missing values in passed series.
- Bugfix of gnuplot's "offset" option: More than at maximum 4
parameters were passed in case of more than 4 features to plot.
- Bugfix: Works now with more than 8 features.
The following commands will install the recent version and show the help
text:
<hansl>
pkg install PairPlot
include PairPlot.gfn
help PairPlot
</hansl>
Have fun!
Artur
2 years, 8 months
A'la selifc() for list
by Marcin Błażejowski
Hi,
do we have a function similar to selifc() but defined for lists?
Marcin
--
Marcin Błażejowski
2 years, 8 months