I don't know what variable or variables are hidden in your example as you don't use dataex. I can't see how 2020, 53 would be sorted after any 2022 date without some quirk in the data that you are not showing us.
Please read and act on https://www.statalist.org/forums/help#stata (and FWIW https://www.statalist.org/forums/help#spelling).
It's hard to proceed unless you tell us the definition of week used by your data provider.
Weeks are quite a thing this week. See also https://www.statalist.org/forums/for...tnightly-rates
Please read and act on https://www.statalist.org/forums/help#stata (and FWIW https://www.statalist.org/forums/help#spelling).
It's hard to proceed unless you tell us the definition of week used by your data provider.
Weeks are quite a thing this week. See also https://www.statalist.org/forums/for...tnightly-rates
Comment