【发布时间】:2019-07-15 08:06:52
【问题描述】:
我正在尝试理解 R 中“ivprobit”包中“ivprobit”函数的语法。指令说:
Usage
ivprobit(formula, data)
Arguments
formula y~x|y1|x2 whre y is the dichotomous l.h.s.,x is the r.h.s.
exogenous variables,y1 is the r.h.s. endogenous variables and
x2 is the complete set of instruments
data the dataframe
然后显示对应的例子:
data(eco)
pro<-ivprobit(d2~ltass+roe+div|eqrat+bonus|ltass+roe+div+gap+cfa,eco)
summary(pro)
如果我符合指令的解释,
y= d2 = dichotomous l.h.s.
x= ltass+roe+div = the r.h.s. exogenous variables
y1= eqrat+bonus = the r.h.s. endogenous variables
x2= tass+roe+div+gap+cfa = the complete set of instruments
我不明白 x 和 x2 之间的区别。 此外,如果 x2 是完整的工具集,为什么它不包括内生变量 y1 呢?相反,它还包括“gap”和“cfa”变量,这些变量甚至都没有显示在 x(外生变量)甚至 y 中。
假设我选择的工具变量确实是“eqrat”和“bonus”,我如何构建知道 x(外生变量)和 x2(完整的工具集)之间的差异?
【问题讨论】:
标签: r syntax regression logistic-regression