The Stata module -usespss- from SSC can be used to read SPSS files into Stata. SPSS allows value labels for string variables and -usespss- retains those labels, although they are not allowed in Stata.
How can value labels be removed from a string variable? The command that is normally used to remove labels from a variable yields an error message with string variables. In the example below, "stringvar" is a string variable with attached value labels.
. lab val stringvar .
may not label strings
r(181);
How can value labels be removed from a string variable? The command that is normally used to remove labels from a variable yields an error message with string variables. In the example below, "stringvar" is a string variable with attached value labels.
. lab val stringvar .
may not label strings
r(181);
Comment