Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • marginal plots for factor variables after xthtaylor

    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:

    Code:
    xthtaylor log_value rta HP rta_HP contig comlang_off comlang_ethno share, endog(share HP)
    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:

    Code:
     
     margins rta_hpai factor rta_hpai not found in list of covariates r(322);
    I kindly need advise on how to go about this.
Working...
X