Hello, trying to create a coded ID based on a string variable that is 18 characters long with over 58 million unique observations. I tried just generating a variable using "_n" and group options but they both result in a numeric field. I then tried "tostring, replace" on the new variable but it is hiccuping and leaving me with duplicate values. I welcome any suggestions. The goal is to "anonymize" a billing ID.
Related Posts with Generate string identifier variable
Bug in Mata's st_view() function with time-series operators?I experienced an unexpected behavior of Mata's st_view() function. In the following, I want to obtai…
How to handle 3-dimensional ("panel") data?Hi, I have a dataset of individual daily investor trading data. In total, there are about 1 million…
Generating a dummy variable if a household has a migrant or not.I have household survey on data including variables 'HouseholdID' containing an ID number unique to…
Bug in estout when using same estimate in two columnsIf the same estimate is shown in two separate columns, using the -indicate- option, only one column …
Do logs modify the correlation between two variables?Dear Statalists, I am applying logs to two variables: Code: gen In_Arg_X_Bra=ln(Arg_X_Bra+1) gen…
Subscribe to:
Post Comments (Atom)
0 Response to Generate string identifier variable
Post a Comment