Announcement

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

  • Summing up the coefficients

    Dear all,

    I have panel data for all variables tariff, emissions and industry for five years. I am trying to find association of tariff and emissions. I use the following code for it.
    How do I sum up the main effect of emissions and interaction terms for each year and test for its significance?

    Code:
    reghdfe tariff i.year##c.emissions, a(industry) cluster(industry)
    Thank you
    Last edited by Padmavathi Bandaru; 13 Aug 2024, 18:51.

  • #2
    Code:
    levelsof year, local(years)
    foreach y of local years {
        display `"Year: `y'"'
        lincom _b[emissions] + _b[`y'.year#c.emissions]
    }

    Comment

    Working...
    X