Hi,
I am trying to implement gmm using ivreg2 command. I first label the endogenous and exogenous variables, as well as instrument. Afterwards, I run the ivreg2 regression, by groups (industry_2d). The commands are below:
However, I obtain the following results(no results, but the commands seem to be applied well):
Does anyone know what I am doing wrong?
Many thanks in advance.
I am trying to implement gmm using ivreg2 command. I first label the endogenous and exogenous variables, as well as instrument. Afterwards, I run the ivreg2 regression, by groups (industry_2d). The commands are below:
* Defining vectors of exogenous, endogenous, and instrumental variables.
global exoreg /*
*/ lnk ln_K_l1 ln_M_l1 /*
*/ km_l1 k2_l1 m2_l1 k2m_l1 km2_l1 k3_l1 m3_l1
global endoreg lnm lnl
global instr ln_L_b_l1 ln_M_l2
sort industry_2d
statsby _b _se size=e(N), by(industry_2d) saving(tmp_WLP_GO_M_1, replace): /*
*/ ivreg2 lnrev $exoreg ($endoreg = $instr), gmm cluster(id)
global exoreg /*
*/ lnk ln_K_l1 ln_M_l1 /*
*/ km_l1 k2_l1 m2_l1 k2m_l1 km2_l1 k3_l1 m3_l1
global endoreg lnm lnl
global instr ln_L_b_l1 ln_M_l2
sort industry_2d
statsby _b _se size=e(N), by(industry_2d) saving(tmp_WLP_GO_M_1, replace): /*
*/ ivreg2 lnrev $exoreg ($endoreg = $instr), gmm cluster(id)
Code:
. statsby _b _se size=e(N), by(industry_2d) saving(tmp_WLP_GO_M_1, replace): /* > */ ivreg2 lnrev $exoreg ($endoreg = $instr), gmm cluster(id) (running ivreg2 on estimation sample) command: ivreg2 lnrev lnk ln_K_l1 ln_M_l1 km_l1 k2_l1 m2_l1 k2m_l1 km2_l1 k3_l1 m3_l1 (lnm lnl = ln_L_b_l1 ln_M_l2), gmm cluster(id) _eq2_size: e(N) by: industry_2d Statsby groups ----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 .................................................. 50
Many thanks in advance.
Comment