Stata学习:如何输出结构方程模型中介分析结果? 您所在的位置:网站首页 stata结果导出esttab Stata学习:如何输出结构方程模型中介分析结果?

Stata学习:如何输出结构方程模型中介分析结果?

2023-03-27 05:46| 来源: 网络整理| 查看: 265

前情回顾文献来源Nie, P., Li, Q., & Sousa-Poza, A. (2021).Energy poverty and subjective well-being in China: New evidence from the China Family Panel Studies. Energy Economics, 103, 105548.Appendix B. Supplementary data【数据+Stata】示例代码

这里以Nie等(2021)表8的Panel A为例:

use "C:\Download\1-s2.0-S0140988321004242-mmc1\EP&SWBdata.dta" gl olscontrols age age2 gender edu_primary edu_middle edu_high /// edu_vocational edu_university employ_y married hhsize house_o urban * foreach v in 1{ qui sem (lnfoodcost M) with B=-0.071 and p=0.000 STEP 2 - depression:lnfoodcost (M -> Y) with B=-0.068 and p=0.000 STEP 3 - depression:epov1 (X -> Y) with B=0.044 and p=0.000 As STEP 1, STEP 2 and STEP 3 as well as the Sobel's test above are significant the mediation is partial! RIT = (Indirect effect / Total effect) (0.005 / 0.049) = 0.100 Meaning that about 10 % of the effect of epov1 on depression is mediated by lnfoodcost! +--------------------------------------------------------------------------+ Note: to read more about this package help medsem . end of do-file期刊输出Nie等(2021)

(完)



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有