HI there! I am currently trying to convert an ID string variable into a numeric variable, as I will need the numeric variable at a later stage for creating a panel ID and making the dataset panel. My issue is that the ID numbers are quite long, thus the values in the string are quite long and when I try and use the destring command, it creates a numerical variable however the values are all in scientific notation. Thus I am not sure how I can proceed, all I want is to basically keep the same long ID value for each observation, but have it in numerical form instead of string. I tried the encode command as well however I have a really big dataset and thus STATA runs out of values to give this encoded variable so that didn't work. Does anyone have any ideas for me? Much appreciated!
-
Login or Register
- Log in with
Comment