Hello all,
I have a list of 250+ schools and want to create a variable that takes the first letter from each word in the school name string.
For example:
If a school is named Lady Irwin School, I'd want to keep just LIS. If a school is named Cama Road English Primary School, I'd want to keep CREPS.
How should I go about doing this?
Thank you in advance!
Related Posts with Creating new variable keeping just the first letter of each word in a string
having problem in recodingDear Statalist, I am facing problem in decoding string variable. For example, the following command…
Can my survivor function even look like this?The graph of my survivor function looks like this. I was wondering is that even reasonable? I learne…
How to compare nested clogit with robust or clustered standard errorsStata/MP 14.2. No access to internet. My data is longitudinal, with 128 individuals and around 700 …
xpose/sxpose keep a variable observations to assign as labels to new variablesDear Statalisters, I am trying to solve the following problem: assign the observations of a variable…
Probit regression in StataHi, I don't know if anyone can help with this: I need to run a probit regression for binary variab…
Subscribe to:
Post Comments (Atom)
0 Response to Creating new variable keeping just the first letter of each word in a string
Post a Comment