Coef Std Err Z P>|Z|
a coefficient = .228894 .030525 7.49857 6.5e-14 // 这里分别提供了输入命令三个变量之间的关系路径系数
b coefficient = .89844 .025216 35.6304 0
Indirect effect = .205648 .028026 7.33783 2.2e-13
Direct effect = .616108 .030345 20.3036 0
Total effect = .821756 .040485 20.2979 0
Proportion of total effect that is mediated: .25025442 //这里 Stata 直接帮我们计算出中介效应在总效应中的占比 25.03%
Ratio of indirect to direct effect: .3337858
Ratio of total to direct effect: 1.3337858