Dear Statalist users,
I have a string variable(patient id) in the form
ED6/01/001
ED6/01/002
ED6/01/003
I would like to automatically convert it to the form
ED6/01/0001
ED6/01/0002
ED6/01/0003
Your assistance is much appreciated
Related Posts with adding a zero in the middle of a string variable
Importing multiple excel worksheets using a loopHello everyone, I have a single excel file that has multiple worksheets, the worksheets are named C…
Error message when conducting Heckman correlation testDear all, I am trying to use the Heckman correlation test to investigate the possibility of a selec…
Missing dataI am looking to analyze missing data so I tried with command mdesc and summ but it came back with no…
Seeking advice on how to accurately calculate marginal effects after multivariate probit regressionDear statalist users, Hope you all are doing well. I used Stata/MP 14.0 to run a multivariate probi…
Variable labels lost due to reshapeHello, I have a dataset (first example below) that I reshape from wide to long. However I lost of th…
Subscribe to:
Post Comments (Atom)
0 Response to adding a zero in the middle of a string variable
Post a Comment