Stata-行业变量处理

/*行业变量处理*/
replace ind1=ind2 if ind1=="C" //C是字符型,双引号!
tab ind1

cap drop ind
egen ind=group(ind1) //将行业的字母代码转化为数字代码:egen+group
posted @ 2021-10-04 18:58  将军练码  阅读(4910)  评论(0)    收藏  举报