全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1112 10
2018-05-22
----------------------- copy starting from the next line -----------------------
复制代码

------------------ copy up to and including the previous line ------------------

Listed 100 out of 200000 observations
Use the count() option to list more

firmid为企业代码,字符型变量,我想控制企业固定效应,需要转变为数值型变量,但是由于数据200+万,所以encode命令不能用。
请问各位大神,还有其他的办法吗?谢谢各位!!


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2018-5-22 15:17:57
2 million+ rows are due to the duplicates of firmid, so you could try keep firmid without duplicates and then encode it. Then, merge the encoded firmid to the original data.
复制代码
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2018-5-22 15:43:52
也可试试
复制代码
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2018-5-22 16:43:42
逍遥梦蝶 发表于 2018-5-22 15:17
2 million+ rows are due to the duplicates of firmid, so you could try keep firmid without duplicates ...
我就是这么做的,谢谢你
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2018-5-22 16:44:17
黃河泉 发表于 2018-5-22 15:43
也可试试
好  我马上试一下 谢谢黄老师
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2018-5-22 16:52:21
zabbyy 发表于 2018-5-22 16:44
好  我马上试一下 谢谢黄老师
请告诉我执行情况如何?时间不会花太长吧?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群