/*行业变量处理*/
replace ind1=ind2 if ind1=="C" //C是字符型,双引号!
tab ind1
cap drop ind
egen ind=group(ind1) //将行业的字母代码转化为数字代码:egen+group
/*行业变量处理*/
replace ind1=ind2 if ind1=="C" //C是字符型,双引号!
tab ind1
cap drop ind
egen ind=group(ind1) //将行业的字母代码转化为数字代码:egen+group
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。