As an example for one variable (though I would like to do for entire dataset at once), I have:
Code:
clear input byte gender 1 2 end label define gender 1 "male" 2 "female" label values gender gender
Code:
clear input str6 gender "male" "female" end
I was hoping the tostring option usedisplayformat would do this but it appears to just bypass all numeric variables with value labels.
Thanks so much,
Reese (Stata 14.0)
0 Response to Converting to string with values equal to previous numeric labels
Post a Comment