Announcement

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

  • How to graph

    Dear researchers,
    I have unbalanced data set for 500 firms from 1990-2015. In a specific year, standards have been issued (Event), and firms have started to adopt these standards, but I have found that the adoption process is non-simultaneous. In other words, firm A adopts in 2003, firm B adopt in 2004, firm C adopt in 2008, and so on. Thus, I want to see the level of earnings management before and after the adoption (event) of the standards for the sample. So, is there any code to graph the level of earnings management before and after the adoption of standards.
    I can use the generalized paired t-test to observe the change before and after like below:
    Code:
    xtreg Earnings_management i.Event, fe
    but I need to show the graph.

    Any help will be highly appreciated.

    Many thanks in advance.

  • #2
    One way:
    Code:
    margins event
    marginsplot , recast(bar) noci plotopt(barwidth(.5))

    Comment


    • #3
      Thank you very much Scott.
      It works with me.

      Thank you.

      Comment

      Working...
      X