Hello,
I would like to put value label automatically on my database.
I have two same csv files, one with label and one without
If i import them into Stata i have those one :
I would like to get this from the two above :
I don't know if we can do it,
Thanks,
I would like to put value label automatically on my database.
I have two same csv files, one with label and one without
If i import them into Stata i have those one :
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(id x1 x2 x3) 1 1 2 10 2 1 4 2 3 1 3 4 4 2 2 5 5 2 1 2 6 1 2 0 7 1 2 10 8 2 3 2 9 2 4 3 10 2 2 2 end
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float id str1 x1 str2 x2 float x3 1 "A" "US" 10 2 "A" "FR" 2 3 "A" "UK" 4 4 "B" "US" 5 5 "B" "ES" 2 6 "A" "US" 0 7 "A" "US" 10 8 "B" "UK" 2 9 "B" "FR" 3 10 "B" "US" 2 end
I would like to get this from the two above :
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(id x1 x2 x3) 1 1 2 10 2 1 4 2 3 1 3 4 4 2 2 5 5 2 1 2 6 1 2 0 7 1 2 10 8 2 3 2 9 2 4 3 10 2 2 2 end label values x1 x1 label def x1 1 "A", modify label def x1 2 "B", modify label values x2 x2 label def x2 1 "ES", modify label def x2 2 "US", modify label def x2 3 "UK", modify label def x2 4 "FR", modify
I don't know if we can do it,
Thanks,
Comment