Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Renaming all value labels in a dataset

From   Mark McCann <>
To   "" <>
Subject   st: Renaming all value labels in a dataset
Date   Thu, 23 Aug 2012 11:21:44 +0100

Hello all,

                I'm having some problems with Stata SE 12.1 (and Stat-Transfer 10) in terms of merging files. I have several files that have been StatTransferred into Stata files, and the variables labels are auto-labelled LABA, LABB, LABC etc. 

A problem occurs when these files are merged together, as LABA in file1.dta and file2.dta refer to different values.

Is there any way to rename all the value labels in a dataset with a prefix? Alternatively, is there a way to prefix value labels in StatTransfer? I was unable to find any advice in the help files beyond dropping and recreating variables, which given the number of files and variables would be very time consuming. Any advice on a faster process would be much appreciated.

                Many thanks,

Research Statistician
Improving Children's Lives 
Institute of Child Care Research
Queen's University Belfast
6 College Park
Belfast BT7 1LP

Tel: +44(0)28 9097 3163
Twitter: @Mark_McCann

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index