regress z_D离职 c.z_薪资待遇##c.z_自主
est store r1
foreach v of varlist z_薪资待遇 z_自主 {
sum `v' if e(sample)
local low_`v' = r(mean)-r(sd)
local high_`v' = r(mean)+r(sd)
}
margins, at(z_薪资待遇=(`low_z_薪资待遇' `high_z_薪资待遇') z_自主=(`low_z_自主' `high_z_自主'))
marginsplot, xlabel(13 " " `low_z_薪资待遇' "Low IV" `high_z_薪资待遇' "High IV" 30 " ") ///
ytitle("z_D离职") ylabel(2000(1000)9000, angle(0) nogrid) ///
legend(position(3) col(1) stack) title("") noci ///
plot1opts(m(Oh) lp(dash)) plot2opts(m(square) lp(dot))


雷达卡


京公网安备 11010802022788号







