Dear All!
I am using jwdid to estimate the impact of regional trade agreements (RTA) on bilateral trade flows
(1) In the first case, the outcome (trade-flows) is at aggregated-level and varies at exporter-importer-year dimension. I am running the following code
I am interested to obtain simple overall ATT using cohort-specific weights, therefore i ran the following code after jwdid
it produces an error that w_g not found.
(2) In the second case, I keep the data at disaggregated industry level. Here, the outcome varies at exporter-importer-industry-year dimension. Therefore, the panel ID, ivar(id_ci_cj_sk), identifies the trade flows between country i (ci) and country j (cj) in industry k(sk) and the tvar(year) is the time variable. Since being an industry-level panel on trade flows across 147 countries across 1990-2010 period, this involves a data set of 16,038,031 observations. I ran the following code to obtain the ETWFE estimates:
This gives the following error message:
reghdfe_standardize(): 3900 unable to allocate real <tmp> [15619903, 109]
GLM: : init_variables(): - function returned error
<istmt>: - function returned error
r(3900)
109 are total number of coefficients ATT(g,t)]'s estimated in our model.
I would greatly appreciate any help in this regard.
FernandoRios
Thanks and regards,
(Ridwan)
I am using jwdid to estimate the impact of regional trade agreements (RTA) on bilateral trade flows
(1) In the first case, the outcome (trade-flows) is at aggregated-level and varies at exporter-importer-year dimension. I am running the following code
Code:
jwdid trade, ivar(id_ci_cj) tvar(year) gvar(RTA_ij) method(ppmlhdfe) fevar(idt_ci idt_cj)
Code:
estat simple [pweight=w_g], predict(xb)
(2) In the second case, I keep the data at disaggregated industry level. Here, the outcome varies at exporter-importer-industry-year dimension. Therefore, the panel ID, ivar(id_ci_cj_sk), identifies the trade flows between country i (ci) and country j (cj) in industry k(sk) and the tvar(year) is the time variable. Since being an industry-level panel on trade flows across 147 countries across 1990-2010 period, this involves a data set of 16,038,031 observations. I ran the following code to obtain the ETWFE estimates:
Code:
jwdid trade, ivar(id_ci_cj_sk) tvar(year) gvar(RTA_ij) method(ppmlhdfe) fevar(idt_ci idt_cj)
reghdfe_standardize(): 3900 unable to allocate real <tmp> [15619903, 109]
GLM: : init_variables(): - function returned error
<istmt>: - function returned error
r(3900)
109 are total number of coefficients ATT(g,t)]'s estimated in our model.
I would greatly appreciate any help in this regard.
FernandoRios
Thanks and regards,
(Ridwan)
Comment