Here is a quick example showing what I believe to be some undesirable behavior (not sure if other Stata users would agree or not) :
Although the label used to associate value labels with the values of the foreign variable gets dropped, internally Stata still treats the variable foreign as though it has a value label associated with it when subsequent commands require the values not be associated with labels. I'd like to suggest that dropping the value label would also disassociate that value label with any variables as well. I can't think of a reason why it would make sense to retain the association between the variable and value label after the value label has been dropped but would definitely be interested to know if there are use cases for doing that. Alan Riley (StataCorp) do you have any thoughts about this?
Code:
sysuse auto.dta, clear desc la drop origin tostring foreign, replace la val foreign tostring foreign, replace
Comment