Announcement

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

  • Difference-in-Differences Panel Data - parallel trend assumption

    Hi there,

    I am working on a panel dataset with stock prices of multiple companies (control and treatment groups) to see the effect of a policy implementation. Using "xtdidregress" when I try to do the parallel trend assumption (i.e., estat trendplots) I keep getting this error: "treatment assignment times vary; not allowed with estat trendplots".

    I have many missing values (stock prices) for this sample.

    I very much appreciate it if you could help me.

    I tried the following codes:

    HTML Code:
    xtdidregress ( ln_ri ) ( treatment ), group( con_cod ) time( time )
    HTML Code:
     egen first = min(time) if treatment , by( con_cod )
    Regards,
    Roksana
    Last edited by Roksana HM; 09 Nov 2024, 08:40.

  • #2
    Roksana: It appears you have a staggered intervention , in which case you should use xthdidregress. Does the regulation affect firms initially in different time periods?

    Comment


    • #3
      Jeff Wooldridge thanks for that. The policy started at the same period for all the companies. I think the problem is that we have a lot of missing values (stock prices) for those companies which I don't know how to deal with.

      Comment


      • #4
        Roksana:
        see -ipolate- and -mi- and make your choice in the lighr of the missingness mechanism of your unobserved valies.
        Kind regards,
        Carlo
        (StataNow 18.5)

        Comment

        Working...
        X