I have a variable consisting of characters and numbers in a string format. How can I separate the character part of a variable and the numbers part? The positioning of a number part is not in the same sequence for all observations so that I couldn't use a substring option. Is there any general way to identify the number part and separate it?
Related Posts with Separating a character and a number part of a variable
Convert correlation coefficients to fractional rankingsHi, The variable (acc) in my data is the Pearson correlation coefficients. However, I would like to…
FAQ: Out of room on your Macintosh hard drive? Changing the location of Stata's tmpdir using the STATATMP environment variableThe following two FAQs discuss using STATATMP to assign Stata temporary files (created by preserve o…
How to deal with endogeneity in fixed effect model?Hi, I am trying to estimate my model using fixed effect . but before that i did a unit root test and…
How to modify the results of the separate command?I would like to create variables per id group using the separate command following this example: C…
How can I define a variable in terms of its relative position to another variable?Hi all, I will really appreciate your help in this matter. I would like to know how can I define a…
Subscribe to:
Post Comments (Atom)
0 Response to Separating a character and a number part of a variable
Post a Comment