全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
3717 0
2023-03-04
sgmediation安装包里的文件需要放在stata的ado/base文件夹下

Bootstrap检验命令:
bootstrap r(ind_eff) r(dir_eff), reps(1000): sgmediation y, mv(x) iv(Z) cv(x1 x2 x3)
//y为被解释变量,x为解释变量,x1 x2 x3为控制变量,Z为中介变量,计算间接效应ind_eff(_bs_1)、直接效应dir_eff(_bs_2)
estat bootstrap, percentile bc //计算95%的置信区间


sgmediation2安装包命令:
net install sgmediation2, from("https://tdmize.github.io/data/sgmediation2")
//下载sgmediation2安装包
Bootstrap检验命令与上相同,把sgmediation改成sgmediation2就行
附件列表

sgmediation安装包

大小:76 Bytes

只需: 1 个论坛币  马上下载

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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