Hi everyone,
How can I remove the first character(s) of values if they are zero? For example, I would like to convert 0003 to 3 and 019 to 19. Obviously, my variable of interest is a string var.
Thanks,
Nader
Related Posts with removing the first character of a string variable if it is zero
Panel spatial correlation consistent least-squares dummy variables (PSCC-LSDV)Greetings, Dear all, Kindly guide how to estimate Panel spatial correlation consistent least-squares…
xtreg how to see estimated coefficient for each obserevationDear Stata users, I'm using xtreg and need to generate a variable to give the estimated coefficient …
New package on SSC: esteta - estimate long-run effects using historical instrumentsWith thanks to Kit Baum for maintaining the SSC archive, I hereby announce the availability of the p…
Difference in N of obs. in Cox modelHi, I have a problem regarding the difference in the number of observations between the Cox model a…
List of values of variable by patient-IDDear stata-community, I would like to have a list of how many patients that has a certain age, but o…
Subscribe to:
Post Comments (Atom)
0 Response to removing the first character of a string variable if it is zero
Post a Comment