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
Margins and standard errors with population data - vce(unconditional) or vce(delta)?Hi everybody I have panel data for the entire population. I run my regression and use the margins-c…
Inserting value of a string in a filename when exportingIs there a way to pull the value of a string variable into the part of a collect export command so t…
covariance structure for melogit model with random slopesHi all, I've been trying to better understand the covariance structure to select for a multilevel l…
How to save table from -pstest- command?Hi there, My goal is to save the table produced by the command -pstest-, preferably to word but I w…
Interpreting results of npregress series (polynomial)Hello Everyone, Am working on Stata 17. Following are my code and output: Please note that Y is a …
Subscribe to:
Post Comments (Atom)
0 Response to How to split a variable with unequal length into multiple variables
Post a Comment