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
To append or to mergeI would like to create a long panel from the 17 waves of panel data from the HILDA survey but am str…
Is % bias is more important than t test results for PSM?My variable of interest is ethnicity. Ethnicity has two categories: natives or migrants. I want to s…
Import excel table to stataHi every one, I have problem when import data from excel. My excel table has type of: year 1 ye…
Order studies within group by time in meta-analysis forest plotHi everyone I am working on a forest plot. I want to order the studies within each group by publica…
new package twby available on SSC: create a cross-tabulation of graphsThanks to Kit Baum, a new package, twby, is now available on SSC. It is a prefix command for twoway …
Subscribe to:
Post Comments (Atom)
0 Response to Replacing Prefix of Variable Labels
Post a Comment