I tried to estimate a PPML gravity model of bilateral trade with country-time fixed effects by -ppmlhdfe-, and ran the same model for two subsamples.

My codes look like this:

ppmlhdfe tradevalueus x controls if D==1, a(i.year#i.iso3num_o i.year#i.iso3num_d)
ppmlhdfe tradevalueus x controls if D==0, a(i.year#i.iso3num_o i.year#i.iso3num_d)

Now, I want to test whether the coefficients of x from the two above regressions are equal, but it seems that -suest- can not be used under this situation. (I tried, but STATA reported error.)

Could anyone please give me some advice about how to conduct this test? Thanks in advance.