Hi Everyone,
I would like to split (eg. Italy2019) into two variables (eg.country= Italy and year =2019).
Since there is no space, I could not do it.
Could someone please provide me information on how to split 'country' name and 'year' into two variable ?
My list:
country
Italy2019
Jamaica2010
Russia2012
.....
Thank you.
Related Posts with How to split variable that does not have spaces
Share of working hours by a segment of race comparing to the total raceHello everyone, I'm working with basic monthly sample of CPS and I'd like to calculate for each occ…
Stata omitting two levels of a variable instead of oneI'm presently working on analyzing a survey with multiple waves. I've used append to attach the diff…
Help to get rolling average (standard deviation) over 5 yearsHello, I have a panel data like this (unbalanced) ID Year V1 V2 0 2005 30 19 0 2006 20 67 0 2007 4…
How does the option"ties" work in psmatch2?Hello: It says in the user's manual : ties not only match nearest neighbor but also other controls w…
Structural equation modeling: Whether and how to estimate margins w.r.t. a latent variableI’d like to get input from the Stata community on the advisability and potential utility of estimati…
Subscribe to:
Post Comments (Atom)
0 Response to How to split variable that does not have spaces
Post a Comment