Announcement

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

  • Event Study with multiple events per company

    Hello everyone,

    I am currently working on my Master Thesis, conducting an event study on the impact of news events related to greenwashing on airlines. I have 10 events and 9 airlines in the sample, some events are impacting only one airline, two airlines, eight airlines or all airlines, which makes the analysis more difficult. I would like to perform a regression of CAR for all airlines concerned by the events, and all the events at the same time. I have added a dummy variable to differentiate those "event days" called "Concerned" marked as 1 on the event day, for airlines concerned.

    However, I am struggling to calculate the CAR as each airline counts several event date. You will find below my do-file and my data set.

    I am having trouble with this part of my code, as the "tg" variable only indicates the number corresponding to the first event of the airline, and ignores the other events.

    Code:
    by Airline: gen datenum=_n
    
     by Airline: gen target=datenum if Concerned == 1
     
     egen tg=min(target), by(Airline)

    Is there a way I could integrate all the events of companies concerned by changing this code, or adding something else ?

    I am very new to Stata and can't find any help from my university or online for this specific problem, I am willing to take any advice at this point, on how to perform this "global" regression, rather than a regression per event. Thank you very much in advance for your help ! I hope my explanations were clear enough
    Attached Files

  • #2
    Flavie:
    it looks like you're dealing with a panel dataset.
    If, as it seems, your dependent variable is continuos, take a look at -xtreg-.
    In addition, as per FAQ, please do not post screenshots/spreadsheets, but use CODE delimiters to share what you typed (as you, in part, did) and what Stata gave you back (that your post did not show) and -dataex- to post an example/excerpt of your dataset. Thanks.
    Kind regards,
    Carlo
    (StataNow 18.5)

    Comment

    Working...
    X