全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
4853 2
2022-05-24
做DDD,如下代码,报错maxvar too small
reghdfe lev Treat_y2003_highind  Treat_y2004_highind Treat_y2006_highind Treat_y2007_highind Treat_y2008_highind i.ind_year i.prov_year i.ind_prov, cluster(coid) absorb(coid)

报错:
maxvar too small
    You have attempted to use an interaction with too many levels or attempted to fit a model with too many variables.  You need to
    increase maxvar; it is currently 5000.  Use set maxvar; see help maxvar.

    If you are using factor variables and included an interaction that has lots of missing cells, try set emptycells drop to reduce the
    required matrix size; see help set emptycells.

    If you are using factor variables, you might have accidentally treated a continuous variable as a categorical, resulting in lots of
    categories.  Use the c. operator on such variables.
r(907);


二维码

扫码加我 拉你入群

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

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

全部回复
2022-5-25 11:59:55
ind_year pro_year ind_pro 固定效应放在 absorb里面,而不是用i.
二维码

扫码加我 拉你入群

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

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

2022-5-31 22:02:19
感谢大佬,已解决
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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