Hello all,
I just reshaped data from long to wide and now have four sets of about 15 variables with the different notations I used in reshaping as part of the variable name and label. I was able to rename the variables in batches, but haven't been able to find a simple way to relabel just the prefix of the variable label.
For example, one variable is labeled "111 countycode", another is "111 testyear". I used 111 to represent 11th Grade ELA testing when reshaping. I'd like to replace all of the 111's with "11th ELA" and leave the suffixes (e.g., countycode, testyear) as they are. I've played around with a few loops but haven't been able to figure out how to do this correctly.
I appreciate any help you can offer!
Related Posts with Replacing Prefix of Variable Labels
outreg2 for all dataframesHi, I am using Stata 17 and would help in producing tables in all my dataframes. Below is an exampl…
Date-variable: Extracting day-of-month as numericHello everyone, I would highly appreciate your help with the following: I have a date-variable in …
mkspline coefficient interpretation in case of statistical insignificant How can I understand the values of '"p>|t|"? If the p-value of the coefficient is not statistica…
Angrist-Pischke F-Statistic Missing in xtivreg2?Dear all, I have two endogeneous regressors and two instruments. I read that the Kleibergen-Paap rk…
What are the functional form of the fixed-effects regression, random-effects regression and pooled regression?Good morning to the community Stata. I wrote that the functional form of the fixed-effects regressi…
Subscribe to:
Post Comments (Atom)
0 Response to Replacing Prefix of Variable Labels
Post a Comment