全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
3350 3
2020-06-10

Title

ivreg2hdfe - Estimates an Instrumental Variable Linear Regression Model with two High Dimensional Fixed Effects.

Syntax

        ivreg2hdfe [if], DEpvar(depvar) ENdog(varlist) iv(varlist) [EXog(varlist)] id1(varname) id2(varname) [cluster(varname)] [gmm2s]


Description

This command builds on the command reg2hdfe and ivreg2 for estimation of a linear instrumental variables regression model with two high dimensional fixed effects.  The command is particulary useful when an instrumental variable approach is required in
particularly large datasets, because it removes the high dimensional fixed effects from the data in the first step.  Then it runs the IV model with the transformed variables after the proper demeaning.

ivreg2hdfe requires reg2hdfe, ivreg2 and tmpdir; which can be installed from ssc by typing in the command prompt:
. ssc install reg2hdfe
. ssc install ivreg2
. ssc install tmpdir

Syntax

DEpvar(depvar): Dependent Variable

ENdog(varlist): List of endogenous variables (to be instrumented)

iv(varlist): List of Instrumental Variables (number of IVs should be at least the
number of endogenous variables)

id1(varname) id2(varname): Identification of the two high dimensional fixed effects variables


Options

EXog(varlist): List of other exogenous variables

cluster(varname): One-way or two-way clustered standard errors

gmm2s: Use the Generalized Methods of Moments to estimate the IV regression

ivreg2hdfe.rar
大小:(22.68 MB)

只需: 100 个论坛币  马上下载



二维码

扫码加我 拉你入群

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

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

全部回复
2020-6-11 10:38:49
啥意思?这个也拿来挣钱?
二维码

扫码加我 拉你入群

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

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

2020-6-11 15:06:14
如果没论坛币,说明登陆少。那么直接自己按展示的代码安装,网速自己优化吧
二维码

扫码加我 拉你入群

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

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

2020-6-11 15:06:42

ivreg2hdfe requires reg2hdfe, ivreg2 and tmpdir; which can be installed from ssc by typing in the command prompt:
. ssc install reg2hdfe
. ssc install ivreg2
. ssc install tmpdir
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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