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
Matching data in a case controlHello there, I am trying to match data for a case control study on a positive cancer diagnosis on b…
Specifying Identity Equation for Forecast of ARIMA(0,1,1) With and Without a ConstantI am estimating an arima(0,1,1) and then using the forecast suite but am having difficulty in specif…
Multiple conditions within loopHello, Stata Users! My question might seem too simple, but I am struggling with generating new vari…
Twoway graph of treated/control means by group with smoothingHi all, I am trying to generate some plots using the means for treatment/control group for various g…
random fixed effect model of panel dataHi, I am trying to anlysis an (unbalanced) panel data which covers around 6000 companies (79000 fri…
Subscribe to:
Post Comments (Atom)
0 Response to Generate string identifier variable
Post a Comment