On Mon, 30 May 2016, Artur T. wrote:
Dear Allin and Jack,
gretl (current cvs on ubuntu) crashes in the following case:
I defined a string with 8 entries (labeling 8 units) and run the
following command
<hansl>
sprintf insttrs "DIW IFO IFW IMK RWI IWH HWWI GD"
setobs Institut insttrs --panel-groups
</hansl>
where "Institut" is a series of strings labeling a total of 11 units
existing in the dataset. I don't expect this to work, of course.
However, gretl should not crash in this case.
Sorry for the delay in responding. Could you give a little more
context? I tried to replicate this problem but couldn't.
I created a text file with the following content:
<inst.txt>
Institut
InstAA
InstAA
InstBB
InstBB
InstCC
InstCC
InstDD
InstDD
InstEE
InstEE
InstFF
InstFF
InstGG
InstGG
InstHH
InstHH
</inst.txt>
Then I ran this script:
<hansl>
open inst.txt
setobs 2 1:1 --stacked-time-series
sprintf insttrs "DIW IFO IFW IMK RWI IWH HWWI GD"
setobs Institut insttrs --panel-groups
print -o
</hansl>
and it executed without errors.
By the way, the command-form of "sprintf" is deprecated in favour of
the function-form, which would look like
string insttrs = sprintf("DIW IFO IFW IMK RWI IWH HWWI GD")
Allin