Dear Statalist community,
I am trying to convert 4+ digit postcodes into only 2 (letters) so that I have fewer categories (dummies), however, I cannot find a command to do this.
After I manage to shorten the postcode, how do I create dummies for them (given they are categorical variables)?
Any help would be really appreciated!
Thank you a lot,
M
I am trying to convert 4+ digit postcodes into only 2 (letters) so that I have fewer categories (dummies), however, I cannot find a command to do this.
After I manage to shorten the postcode, how do I create dummies for them (given they are categorical variables)?
Any help would be really appreciated!
Thank you a lot,
M
Comment