楼主: EEEEHH
4853 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

楼主
EEEEHH 发表于 2022-5-24 18:59:04 |AI写论文

+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

沙发
机智的小球球IU 学生认证  发表于 2022-5-25 11:59:55
ind_year pro_year ind_pro 固定效应放在 absorb里面,而不是用i.

藤椅
EEEEHH 发表于 2022-5-31 22:02:19
感谢大佬,已解决

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-29 08:52