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
Generating ID variables in one data set based on some observations in another data setHI all, Please consider the following data set: data set_1 clear . input str8 respid byte str…
Matching based on market value with range.Hi, I am trying to Match the companies in my dataset that belong to the test sample 1:1 to a compan…
Refering to factor variables post estimationDear All, I want to use lincom to estimate total effect after running a regression of the form: C…
Power calculation for time to event studyHi, I am powering an RCT where the primary endpoint is time-to-response from initiation of treatmen…
Statistical powerI want to run a linear regression I have a 94 observations with 11 independent variables. I have the…
Subscribe to:
Post Comments (Atom)
0 Response to adding a zero in the middle of a string variable
Post a Comment