楼主: bbsflyingsnow
1691 3

[编程问题求助] stata sgmediation命令运行不动 [推广有奖]

  • 7关注
  • 1粉丝

已卖:3份资源

学科带头人

24%

还不是VIP/贵宾

-

威望
0
论坛币
27012 个
通用积分
87.7731
学术水平
0 点
热心指数
4 点
信用等级
0 点
经验
38480 点
帖子
1045
精华
0
在线时间
1090 小时
注册时间
2008-5-18
最后登录
2025-10-3

楼主
bbsflyingsnow 发表于 2022-2-5 22:10:53 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
举例,xi: sgmediation Y, mv(M) iv(X) cv($CV  i.year i.ind  ) quietly
这个中介效应检验很快,
但是加上个体效应i.code 3000多家公司吧
xi: sgmediation Y, mv(M) iv(X) cv($CV  i.year i.ind  i.code ) quietly
然后stata就一直运行,但是一直不动,很久后提示matsize too small
You have attempted to create a matrix with too many rows or columns or attempted to
    fit a model with too many variables.  You need to increase matsize; it is currently
    400.  Use set matsize; see help matsize.

    If you are using factor variables and included an interaction that has lots of
    missing cells, either increase matsize or 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(908);


设置了set matsize 11000,最大了吧,再运行,还是不动……
二维码

扫码加我 拉你入群

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

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

关键词:Stata tata 怎么办 sgmediation mediation

沙发
bbsflyingsnow 发表于 2022-2-7 22:44:12
已经等了十几分钟了,还没有动

藤椅
bbsflyingsnow 发表于 2022-2-7 23:13:16
stata回复了:op. sys. refuses to provide memory

板凳
bbsflyingsnow 发表于 2022-2-8 10:02:53
已经搞定了,分享下经营:
set matsize 10000
运行命令
等1个小时左右
OK 出结果

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-9 06:23