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:


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
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:
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