Am 19.04.2020 um 15:28 schrieb Allin Cottrell:
On Sat, 18 Apr 2020, Sven Schreiber wrote:
> Am 17.04.20 um 21:47 schrieb Allin Cottrell:
>>
>> I see your point, but my inclination here would be to revise the
>> behavior of "Add observations range dummy". I think this should be
>> exempt from the usual rule that we write values for newly generated
>> series only within the current sample range -- otherwise this dummy
>> becomes kinda useless. We should write zeros for observations outside
>> of the current sample, not NAs.
>>
>> Anyone see a reason why not?
>>
> Is there a scripting / hansl analogue of this action that would be
> affected?
Not really. There's no variant of "smpl" that offers to create a dummy
representing the current sample range. If you want to do that via
hansl you could do any of the following:
OK, for completeness here's one further thought, although I believe it
would probably be overkill: AFAIK when extending the dataset range (i.e.
dataset addobs, not only the active sample) all series get missings,
except the only time-varying deterministics: constant, trend, seasonals.
In principle it could be possible to treat a sample range dummy just
like that: A dummy indicating 1975-2000 will also be clearly zero
(false) after 2020, for example. So sample range dummies would get an
extra flag internally, like seasonal dummies. But again, probably not
worth it.
thanks
sven