全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
7306 16
2019-02-26
请问用sgmediation做中介效应检验,要如何放置中介变量?
stata报错如下,要怎么处理呢?

sgmediation y, mv(m) iv(x1) cv(x2 x3 x4 x5 x6) bootstrap reps(500) level(95)

factor variables and time-series operators not allowed
(error in option cv())

二维码

扫码加我 拉你入群

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

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

全部回复
2019-2-28 08:47:15
我也遇到这个了
二维码

扫码加我 拉你入群

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

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

2019-2-28 09:55:28
你先试试
复制代码
看看可不可以?也请提供
复制代码
之资讯!
二维码

扫码加我 拉你入群

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

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

2019-2-28 16:01:31
黃河泉 发表于 2019-2-28 09:55
你先试试看看可不可以?也请提供之资讯!
sgmediation y, mv(m) iv(x) bootstrap reps(500) level(95)后显示
Sobel-Goodman Mediation Tests

             Coef         Std Err     Z           P>|Z|
Sobel       1.1067186    .27277617   4.057      .00004966
Goodman-1   1.1067186    .2748397   4.027      .00005655
Goodman-2   1.1067186    .2706969   4.088      .00004343

Pecent of total effect that is mediated:  101.87 %
Ratio of indirect to direct effect:      -54.5362

Percentile and Bias-corrected bootstrap results for Sobel: 500 replications

sgboot command not found

二维码

扫码加我 拉你入群

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

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

2019-2-28 16:04:10
黃河泉 发表于 2019-2-28 09:55
你先试试看看可不可以?也请提供之资讯!
x2 x3 x4 x5等变量有连续变量,有分类变量,
二维码

扫码加我 拉你入群

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

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

2019-2-28 16:05:39
黃河泉 发表于 2019-2-28 09:55
你先试试看看可不可以?也请提供之资讯!
sgmediation y, mv(m) iv(x) bootstrap reps(500) level(95)  结果显示如下
             Coef         Std Err     Z           P>|Z|
Sobel       1.1067186    .27277617   4.057      .00004966
Goodman-1   1.1067186    .2748397   4.027      .00005655
Goodman-2   1.1067186    .2706969   4.088      .00004343

Pecent of total effect that is mediated:  101.87 %
Ratio of indirect to direct effect:      -54.5362

Percentile and Bias-corrected bootstrap results for Sobel: 500 replications

sgboot command not found
r(111);


二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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