已在论坛上搜索过,可能的解决办法和存在的问题如下:
cr:
leungmelin
https://bbs.pinggu.org/forum.php?mod=viewthread&tid=5103056&pid=44254297&page=1
. probit inlf c.nwifeinc c.educ c.exper##c.exper c.age i.haskids c.educ#i.haskids, nolog
. margins, dydx(c.educ i.haskids)
还有一种:
. probit inlf c.nwifeinc c.educ c.exper##c.exper c.age i.haskids c.educ#i.haskids, nolog
. margins, dydx(c.educ) at(haskids=(0(1)1))
第一种方法并不能得到交互项的边际效应,第二种方法只适用于交互项中至少有一个虚拟变量的情况
cr:punchwei
https://bbs.pinggu.org/thread-2573761-2-1.html
但这个命令只适用于连续变量和虚拟变量的交互项的情况
请问如果是连续变量和连续变量的交互项呢?
以及是否有命令像mfx一样直接导出所有项的边际效应呢?