On Thu, 24 Feb 2022, Ignacio Diaz-Emparanza wrote:
I'm getting a reproducible crash when trying to run on my desktop
(Ubuntu
linux 20.04 and gretl built yesterday from git)the following script(which is
as is in the "Hansl Primer" guide):
<hansl>
open bjg.gdt
foreign language=R --send-data
y <- gretldata[, "lg"]
strmod <- StructTS(y)
compon <- as.ts(tsSmooth(strmod))
vars <- as.matrix(strmod$coef)
gretl.export(compon)
gretl.export(vars)
end foreign
append @dotdir/compon.csv
rename level lg_level
rename slope lg_slope
rename sea lg_seas
vars = mread("vars.mat", 1)
</hansl>
The version of R seems not to affect. I just upgraded from R 3.6 to 4.1.2
obtaining the same crash.
I have gretl 2001.c built on august in my laptop (ubuntu 20.04 as well), and
this script may be run without problem.
OK, two things. Copy-n-pasting Ignacio's script provokes some weird hiccup
on mu system because of the indentation (those are not spaces nor tabs;
God knows what they are. Hexdump gives me "c2 a0"; go figure).
After fixing the indentation, the script runs fine here. Still, a crash
should never happen.
A few extra points:
* The script in fact comes from the User's Guide (chap. 44), not the Hansl
Primer. Copy-pasting code from the pdf files will give you nothing but
trouble. This is why recent versions of the User's Guide have clickable
links to download the example scripts.
* Not really relevant but... for that kind of stuff (structural time
series models) it's not necessary to go throuh R anymore, since we have
the StrucTiSM package ;)
* Even less relevant, but... Ignacio: we would value very much your
opinion on the new GUI element for setting up state space models. A model
like the one in the example (a Local Linear Trend model) is quite easy to
handle.
-------------------------------------------------------
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
-------------------------------------------------------