Fixed Effects in R Studio


I am in new with R.
I would like to know how can I translate the following Stata code into R Studio:

  • Create exporter-time fixed effects
    egen exp_time = group(exporter year)
  • Create importer-time fixed effects
    egen imp_time = group(importer year)

I would appreciate your help.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.