I use the package -numdate- to generate a numeric weekly date variable from an existing string variable with information on year and week, using the following command:
numdate weekly newvar=oldvar, pattern(YW)
The command works fine for all week numbers exept week 53:
oldvar newvar
2020-48 2020w48
2020-49 2020w49
2020-50 2020w50
2020-51 2020w51
2020-52 2020w52
2020-53 .
2021-01 2021w1
2021-02 2021w2
Is there something I can do to make this command also work for week 53?
numdate weekly newvar=oldvar, pattern(YW)
The command works fine for all week numbers exept week 53:
oldvar newvar
2020-48 2020w48
2020-49 2020w49
2020-50 2020w50
2020-51 2020w51
2020-52 2020w52
2020-53 .
2021-01 2021w1
2021-02 2021w2
Is there something I can do to make this command also work for week 53?
Comment