- /*我要对30多个产业分别进行同样的回归,挨个写code太麻烦了,应该如何转换成循环语句呢?
- 例如:xtreg y x1 x2 x3 x4 yeardummy* if industry_code==6, fe
- outreg2 using code_6, replace
- 其他产业(产业编码是6的地方,改为7、8、9。。。直至45)同理,请教各位怎么编写比较简便呢?
- 非常感谢!*/
- forvalues i = 6(1)45 {
- xtreg y x1 x2 x3 x4 yeardummy* if industry_code==`i', fe
- outreg2 using code_`i', replace
- }


雷达卡

[em23][em23][em23]
京公网安备 11010802022788号







