Announcement

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

  • Eventstudy2 command

    Dear all,

    I am doing an event study in a multi-country setting with multiple events per company. For that, I wanted to use the eventstudy2 command. I have the following files, the first one illustrating the company return file, while the second one contains the returns of the market indices:

    Click image for larger version

Name:	CR.PNG
Views:	1
Size:	68.7 KB
ID:	1719425
    Click image for larger version

Name:	MR.PNG
Views:	1
Size:	30.3 KB
ID:	1719426


    In addition, I have an event files containing the event dates of the companies.

    I transformed the excel files into STATA files and applied the following command:

    use "events.dta", clear
    eventstudy2 GlobalCompanyKey Date_ using Company_Return, returns(CompanyReturn) model(FM) marketfile(MKTReturn) marketreturn(Ticker) evwlb(-1) evwub(10) eswlb(-211) eswub(-11)

    However, I received the error message r(459) "variable Date_ does not uniquely identify observations in the using data"

    Does anyone know why this error message occurs and how I can solve this? Besides, Date_ is the transformed data variable of Date as I needed to convert it into a numerical one.

    Thank you in advance.

    Best

    Anna
Working...
X