Am 17.02.2021 20:51 schrieb Artur Tarassow:
Hi,
just by chance I found that periodic dummies are not named
consistently. Currently we have:
- quarterly data: dq1 to dq4
- monthly data: dm1 to dm12
- daily (5 days): dummy_1 to dummy_5
I am wondering whether some harmonization is useful here?
<hansl>
clear
set verbose off
# quarterly dq*
open AWM18.gdt -q
list L = dataset
genr dummy
list N = dataset - L
N
# monthly -- dm*
open hamilton.gdt -q
list L = dataset
genr dummy
list N = dataset - L
N
# Daily (5 days) -- dummy_*
open b-g.gdt -q
eval $datatype
list L = dataset
genr dummy
list N = dataset - L
</hansl>
After re-thinking my post, I think I should propose some way to
harmonize things:
If one applies the "dummify" command to some discrete series named
"foo", one gets a list of new series named "D_foo_<VALUE>".
Apparently
"D_" is the prefix for a "dummy" while"d_" is the prefix
when applying
the "diff" command:
<hansl>
open denmark
diff LRM
</hansl>
So in case we agree that harmonizing things would be useful (of course,
fully ok if not) one could make use of either prefix for periodic
dummies:"Dp_" or "dp_".
However, one remark on this: I guess that change is not
backward-compatible.
Artur