As you all probably know, --xtset- (and -tsset-) takes an id and time argument in order to declare panel data. Stata requires that both id and time be numeric variables. I want to understand the reasoning behind this requirement, as theoretically, there is no reason why id must be numeric. To be clear, I'm not asking for help, as I know how to work around this problem. I'm just wondering if anyone can explain the design choice to not allow -xtset- to work with string variables for the panel identifier, for my own edification (obviously time must be numeric so it can be sorted, but I don't see any reason why id has to be numeric. Indeed, most other statistical software does not require as such).
Thanks!
Thanks!

Comment