Announcement

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

  • How to conduct Parallel Trends Assumption test on STATA?

    I am attempting a parallel trends test with panel data (annual) from 1990-2018. My cross-section identifier is c_id (identifying countries) and I have two countries. I am trying to attempt a similar method as this following post : https://www.statalist.org/forums/for...did-estimation

    My equation for my DiD analysis is as follows:

    Exports = β0 + β1y2011 + β2country + β3y2011*Country + ε

    where y2011 = 1 for observations from 2011 onwards, 0 otherwise
    Country = 1 for UK, 0 for Australia


    To conduct this test, would I therefore need the following code?
    Code:
     xtset c_id Year
    xtreg totalexportsA i.Year##i.Country, fe
    Does this essentially interact the Country dummy variable for each year dummy and then to check whether the assumption holds, do you compare the p values and check to see if they're insignificant?

  • #2
    Welcome to Statalist. You'll increase your chances of a useful answer by following the FAQ on asking questions – provide Stata code in code delimiters, readable Stata output, and sample data using dataex.

    It looks like what was recommended.

    Comment

    Working...
    X