Hi all,
I would like to add additional time-dimensions (n observations) for each
unit in a panel. I've tried to make use of the <dataset addobs> command
but it does, instead, add a whole new unit:
<hansl>
clear
set verbose off
nulldata 6 -p
genr index
series unit = cum(((index-1) % 3) == 0)
series time = vec(cum(mshape(ones(6,1),3,2)))
setobs unit time --panel-vars
dataset addobs 3 # stacks time-series of length 3 for a 'new' unit
print dataset -o
</hansl>
Is there a 'clever' way to expand the time-dimension while leaving the
unit-dimension untouched?
Thanks,
Artur