Dear All, I have this data set in Stata format (dataex may not be appropriate for my purpose), encode.dta. I use
Code:
encode Journal_e, gen(id)
but do not obtain `id' from 1,2, .... Please see
Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input str63 Journal_e long id
"Accountant"                    842
"Accountant"                    842
"Accountant"                    842
"Accountant"                    842
"Accountant"                    842
"Accountant"                    842
"Accountant"                    842
"Accountant"                    842
"Accountant"                    842
"Accountant"                    842
"Accountant"                    842
"Accountant"                    842
"Accounting Research"           843
"Accounting Research"           843
"Accounting Research"           843
"Accounting Research"           843
"Accounting Research"           843
"Accounting Research"           843
"Accounting Research"           843
"Accounting Research"           843
"Accounting Research"           843
"Accounting Research"           843
"Accounting Research"           843
"Accounting Research"           843
"Agricultural Economy"          844
"Agricultural Economy"          844
"Agricultural Economy"          844
"Agricultural Economy"          844
"Agricultural Economy"          844
"Agricultural Economy"          844
"Agricultural Economy"          844
"Agricultural Economy"          844
"Agricultural Economy"          844
"Agricultural Economy"          844
"Agricultural Economy"          844
"Agricultural Economy"          844
"Agricultural History of China" 845
"Agricultural History of China" 845
"Agricultural History of China" 845
"Agricultural History of China" 845
"Agricultural History of China" 845
"Agricultural History of China" 845
"Agricultural History of China" 845
"Agricultural History of China" 845
"Agricultural History of China" 845
"Agricultural History of China" 845
"Agricultural History of China" 845
"Agricultural History of China" 845
"Asia-pacific Economic Review"  846
"Asia-pacific Economic Review"  846
"Asia-pacific Economic Review"  846
"Asia-pacific Economic Review"  846
"Asia-pacific Economic Review"  846
"Asia-pacific Economic Review"  846
"Asia-pacific Economic Review"  846
"Asia-pacific Economic Review"  846
"Asia-pacific Economic Review"  846
"Asia-pacific Economic Review"  846
"Asia-pacific Economic Review"  846
"Asia-pacific Economic Review"  846
"Auditing Research"             847
"Auditing Research"             847
"Auditing Research"             847
"Auditing Research"             847
"Auditing Research"             847
"Auditing Research"             847
"Auditing Research"             847
"Auditing Research"             847
"Auditing Research"             847
"Auditing Research"             847
"Auditing Research"             847
"Auditing Research"             847
"Business & Economy"            848
"Business & Economy"            848
"Business & Economy"            848
"Business & Economy"            848
"Business & Economy"            848
"Business & Economy"            848
"Business & Economy"            848
"Business & Economy"            848
"Business & Economy"            848
"Business & Economy"            848
"Business & Economy"            848
"Business & Economy"            848
"Chemical Industry"             849
"Chemical Industry"             849
"Chemical Industry"             849
"Chemical Industry"             849
"Chemical Industry"             849
"Chemical Industry"             849
"Chemical Industry"             849
"Chemical Industry"             849
"Chemical Industry"             849
"Chemical Industry"             849
"Chemical Industry"             849
"Chemical Industry"             849
"China Business and Market"     850
"China Business and Market"     850
"China Business and Market"     850
"China Business and Market"     850
end
label values id id
label def id 842 "Accountant", modify
label def id 843 "Accounting Research", modify
label def id 844 "Agricultural Economy", modify
label def id 845 "Agricultural History of China", modify
label def id 846 "Asia-pacific Economic Review", modify
label def id 847 "Auditing Research", modify
label def id 848 "Business & Economy", modify
label def id 849 "Chemical Industry", modify
label def id 850 "China Business and Market", modify
Any suggestions? Thanks.