Am 21.05.2014 16:35, schrieb Ignacio Diaz-Emparanza:
On 21/05/14 16:15, Riccardo (Jack) Lucchetti wrote:
> On Wed, 21 May 2014, Sven Schreiber wrote:
>
>>
>> Agreed (well, maybe deprecated and undocumented would be enough...); but
>> there should still be a script way of creating seasonal/periodic
>> dummies, and currently there is no alternative, or is there?
>
> <hansl>
> tmp = time % $pd
> list DUMS = dummify(tmp)
> </hansl>
I prefer that the number of each dummy corresponds with the observation:
tmp = (time-1)%$pd + 1
list DUMS = dummify(tmp)
Aren't you assuming that the workfile/sample actually starts with the
"right" obs here?
Anyway, thanks for all your suggestions, but what I really meant was a
function (or command) that mirrors the menu entry like 'genr dummy'
does, not some clever way to code it...
-sven