楼主: EEEEHH
2913 2

[回归分析求助] stata#使用了reghdfe仍然报错maxvar too small,请问大佬们如何解决!! [推广有奖]

  • 1关注
  • 0粉丝

初中生

66%

还不是VIP/贵宾

-

威望
0
论坛币
5 个
通用积分
0.0000
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
66 点
帖子
3
精华
0
在线时间
32 小时
注册时间
2020-2-28
最后登录
2023-7-13

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
做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);


二维码

扫码加我 拉你入群

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

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

关键词:Stata Small tata Mall max STATA

ind_year pro_year ind_pro 固定效应放在 absorb里面,而不是用i.

使用道具

藤椅
EEEEHH 发表于 2022-5-31 22:02:19 |只看作者 |坛友微信交流群
感谢大佬,已解决

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-20 04:09