Announcement

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

  • How to drop firm-years observations in which CEO turnover occurred

    Hello everyone, I am a new user on Stata and I need some help with the first replication study I am doing for my PhD.

    I need to replicate a study on the effect of R&D expenditures on CEO compensations made by Cheng and published in 2004, but I am having troubles in dropping CEO compensation observations when the CEO for the same firm changes. More in depth, Cheng structured the dependent variable of his regression (CEO compensation) as the difference in the ln(CEO compensation)t - ln(CEO compensation)t-1 but does not calculate this delta when CEOs change across t and t-1 within the same firm, i.e. when there has been a CEO turnover.

    How can I get rid of the latter observations in Stata?

    Thank you,
    Giovanni

  • #2
    https://www.stata.com/support/faqs/d...ions-in-group/ may be of help.

    Comment


    • #3
      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. Also, provide a full cite for papers you reference.

      If you have xtset your data, then you can simply do something like replace compensation=. if CEO!=L.CEO

      Comment

      Working...
      X