I have a variable named var_0 with responses ranging from missing to maximum length 3. It has no delimiters. I would like to split it into 3 variables (var_1, var_2 and var_3) as shown in the attachment. How would I efficiently go about it?
Luke Korir
Related Posts with How to split a variable with unequal length into multiple variables
Sankey visual analysisHi, I am trying to use Sankey to visually describe longitudinal patterns/flow in Stata 17. (I have …
Getting rid of unwanted missing value in a variableHi, I have the following variable "coeff" Code: * Example generated by -dataex-. To install: ssc …
psmatch2 and teffects psmatchI have a question, how can I get the pscore delivered by psmatch2 command automatically, but using t…
Coding the competitive(close) election in U.S. state legistlation electionsIt is my first time writing a post in the forum, so I am not sure I can use dataex. As a result, I p…
mixed: How do I retrieve the intercept-slope correlation?Hi I am fitting a model like this: Code: webuse nlswork, clear mixed ln_w tenure || id: tenure, …
Subscribe to:
Post Comments (Atom)
0 Response to How to split a variable with unequal length into multiple variables
Post a Comment