Guys I am trying to visualize marginal plots for an interaction of two dummies after running the hausman taylor estimator.The idea behind the estimation is to see if the interaction of a dummy for regional trade agreements (rta) and a dummy for the occurance of certain livestock disease (HP) in the exporting country affect bilateral meat trade. Below is the simplified specification:
Here, rta_HP is the interaction term. The main challenge is that xthtaylor does not allow factor operations. So I have been trying some formulars for margins and have been getting this error message:
I kindly need advise on how to go about this.
Code:
xthtaylor log_value rta HP rta_HP contig comlang_off comlang_ethno share, endog(share HP)
Code:
margins rta_hpai factor rta_hpai not found in list of covariates r(322);