全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
7808 3
2019-01-09
看了help文件,对margins不同用法对应求出的边际效应还是不太理解,有人能指点下以下几个加粗命令中求的分别是什么边际效应吗?我如果画调节作用图,究竟该如何使用margins?在此谢过

    Setup
        . webuse nhanes2

    Profile plot of margins
        . regress bpsystol agegrp##sex
        . margins agegrp
        . marginsplot

    Interaction plot
        . margins agegrp#sex
        . marginsplot

    Contrasts of margins -- effects (discrete marginal effects)
        . margins r.sex@agegrp
        . marginsplot

    Equivalently, using dydx()
        . margins agegrp, dydx(sex)
        . marginsplot

    Plots at specified values of continuous covariates
        . logistic highbp sex##agegrp##c.bmi
        . margins sex, at(bmi=(10(5)65))
        . marginsplot


二维码

扫码加我 拉你入群

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

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

全部回复
2019-1-9 22:23:56
@黃河泉
黄老师能否解答一下呢
二维码

扫码加我 拉你入群

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

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

2021-9-16 17:19:28
请问margins得到的结果表格怎么输出到word或者xls呢?
二维码

扫码加我 拉你入群

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

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

2022-6-18 17:42:38
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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