Announcement

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

  • Is there any way to suppress number of pre-event period for the estat trendplots command?

    AHi all expert, today when I tried to draw the graph for xtdidregress by using

    Code:
    estat trendplots
    I have
    Click image for larger version

Name:	2.png
Views:	1
Size:	117.1 KB
ID:	1696501


    As can be seen from graph, we have 3 pre-trend points (including 2018), how could I adjust the code "estat trendplots" to suppress the pre-events to two (2017 and 2018).

    Thank you.

  • #2
    preserve, drop year==2016, estat trendplots, restore ?

    Comment


    • #3
      Originally posted by George Ford View Post
      preserve, drop year==2016, estat trendplots, restore ?
      This works, thank you, George Ford . Another solution is to run regression for the sample without the year we want to surppress

      Comment

      Working...
      X