[Gretl-users] how to match observations with 'join' and gdt files

Sven Schreiber svetosch at gmx.net
Thu Nov 19 16:14:43 EST 2015

Am 19.11.2015 um 21:16 schrieb Allin Cottrell:

> A workaround is to add a suitable tkey column to the join source file:

I was also thinking whether it's possible to work around the non-feature
without actually having to change the file from which to import.

Perhaps something like this:

open outerfile.gdt
string outerstart = obslabel($t1)
length = $nobs

nulldata 100 --preserve
setobs 4 2000:1
startnum = obsnum(outerstart)
endnum = startnum + length - 1
smpl startnum endnum
join outerfile.gdt x


More information about the Gretl-users mailing list