Hello Prof. Joao Santos Silva , I encountered a similar problem as Chan's when I applied ppml to a gravity model augmented with outward FDI stock, infrastructure level of the importing and exporting countries, and BRI participation. Here is my code following the Advanced Guide to Trade Policy Analysis by Yotov et al. (2016):
egen exp_time=group(exporter year)
quietly tabulate exp_time, generate(EXPORTER_TIME_FE)
egen imp_time=group(importer year)
quietly tabulate imp_time, generate(IMPORTER_TIME_FE)
egen pair_id=group(exporter importer)
quietly tabulate pair_id, generate(PAIR_FE)
ppml tradeflow_baci ln_distcap ln_ofdi rta bri bri_ln_exporter_infra bri_ln_importer_infra bri_ln_ofdi ln_ofdi_ln_exporter_infra ln_ofdi_ln_importer_infra PAIR_FE* EXPORTER_TIME_FE* IMPORTER_TIME_FE*, cluster(pair_id)
"bri_ln_exporter_infra", "bri_ln_importer_infra", "bri_ln_ofdi", "ln_ofdi_ln_exporter_infra", and "ln_ofdi_ln_importer_infra" are all interaction variables. For example, "bri_ln_importer_infra" = bri*ln(importer_infra) where bri is a dummy variable indicating participation to the Belt and Road Initiative at time t and "importer_infra" is the importing country's infrastructure level at time t.
I got the result below with no coefficient estimates for the independent variables:
note: starting ppml estimation
note: tradeflow_baci has noninteger values
Iteration 1: deviance = 1.09e+09
Iteration 2: deviance = 1.05e+09
Iteration 3: deviance = 1.05e+09
Iteration 4: deviance = 1.05e+09
Iteration 5: deviance = 1.05e+09
Iteration 6: deviance = 1.05e+09
Number of parameters: 1
Number of observations: 86
Pseudo log-likelihood: -5.236e+08
R-squared: .
Option strict is: off
(Std. err. adjusted for 23 clusters in pair_id)
------------------------------------------------------------------------------
Robust
tradeflow_~i | Coefficient std. err. z P>|z| [95% conf. interval]
------------------------------------------------------------------------------
_cons | 15.66561 .4062579 38.56 0.000 14.86936 16.46186
------------------------------------------------------------------------------
Alternatively, I tried using ppmlhdfe and got coefficient estimates for the independent variables and some of the fixed effects, but none of them had p-values, robust sd, z-scores, and confidence intervals. In the ppmlhdfe regression, it mentioned the following warnings: missing F statistic; dropped variables due to collinearity or too few clusters and variance matrix is nonsymmetric or highly singular. In the ppml regression, it said that it excluded 164 regressors to ensure that the estimates exist.
Would you happen to know what these could mean and how should I fix the code? Thank you so much!
egen exp_time=group(exporter year)
quietly tabulate exp_time, generate(EXPORTER_TIME_FE)
egen imp_time=group(importer year)
quietly tabulate imp_time, generate(IMPORTER_TIME_FE)
egen pair_id=group(exporter importer)
quietly tabulate pair_id, generate(PAIR_FE)
ppml tradeflow_baci ln_distcap ln_ofdi rta bri bri_ln_exporter_infra bri_ln_importer_infra bri_ln_ofdi ln_ofdi_ln_exporter_infra ln_ofdi_ln_importer_infra PAIR_FE* EXPORTER_TIME_FE* IMPORTER_TIME_FE*, cluster(pair_id)
"bri_ln_exporter_infra", "bri_ln_importer_infra", "bri_ln_ofdi", "ln_ofdi_ln_exporter_infra", and "ln_ofdi_ln_importer_infra" are all interaction variables. For example, "bri_ln_importer_infra" = bri*ln(importer_infra) where bri is a dummy variable indicating participation to the Belt and Road Initiative at time t and "importer_infra" is the importing country's infrastructure level at time t.
I got the result below with no coefficient estimates for the independent variables:
note: starting ppml estimation
note: tradeflow_baci has noninteger values
Iteration 1: deviance = 1.09e+09
Iteration 2: deviance = 1.05e+09
Iteration 3: deviance = 1.05e+09
Iteration 4: deviance = 1.05e+09
Iteration 5: deviance = 1.05e+09
Iteration 6: deviance = 1.05e+09
Number of parameters: 1
Number of observations: 86
Pseudo log-likelihood: -5.236e+08
R-squared: .
Option strict is: off
(Std. err. adjusted for 23 clusters in pair_id)
------------------------------------------------------------------------------
Robust
tradeflow_~i | Coefficient std. err. z P>|z| [95% conf. interval]
------------------------------------------------------------------------------
_cons | 15.66561 .4062579 38.56 0.000 14.86936 16.46186
------------------------------------------------------------------------------
Alternatively, I tried using ppmlhdfe and got coefficient estimates for the independent variables and some of the fixed effects, but none of them had p-values, robust sd, z-scores, and confidence intervals. In the ppmlhdfe regression, it mentioned the following warnings: missing F statistic; dropped variables due to collinearity or too few clusters and variance matrix is nonsymmetric or highly singular. In the ppml regression, it said that it excluded 164 regressors to ensure that the estimates exist.
Would you happen to know what these could mean and how should I fix the code? Thank you so much!
Comment