Announcement

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

  • DiD model

    Hi everyone,
    I make a comparison of the impact of variable X on Y before and after the Covid19 pandemic using panel data (2000-2021), and plan to use the DiD model.
    I did a test, choosing year=2019 as the benchmark. create variable t with the command: gen t=(year>=2019) means assigning 0 is the period from 2000-2018 as pre-Covid; 1 is the period 2019-2021 as post-Covid.
    But I don't know how to create the Treat variable appropriately? I have tried many ways to create the Treat variable, but the regression results do not appear the coefficients (omitted) of the treat and treat*time variables.
    Please help me
    Last edited by LEE CHAN; 07 Feb 2024, 12:06.

  • #2
    Covid really hit in early 2020. 2019 is too early (early Wuhan cases in December 2019).

    You can't use DID because Covid affected everyone/everywhere. You don't have a control during the Covid period.

    Comment

    Working...
    X