Dear Stata community,
I am facing the following problem.
I would like to calculate acquisition premiums by using the targets share price minus the share price 4 weeks prior to deal announcement.
I retrieved my share price list from Datastream and it looks in the following way:
In the first column of the excel sheet I have the dates, and in the following columns I have the companies ISINs as headers and then the share prices (see attached screenshot).

Now I have to match the data with my Deal Datasheet using the target companies ISIN.
In my Deal Datasheet in Stata I already created the variable Target_ISIN. However, in the Share Price Excelsheet, the ISINs are in the first row, so if I import them to stata with first row as headers, I cannot match them with the variable of my master list "Target_ISIN".
When I transpose the data in the Excel sheet, I obtain a column with the firms' ISINs, however then I face a problem by having the dates as variable names.


Do you have any ideas, how I can transform and match these data and create my variable "Acquisition Premium"?
I did a lot of research to find solutions, but I could not find many information about calculating acquisition or bid premiums using daily share prices from Datastream.
Another problem is, that the date "30 days prior to deal announcement" might not exist, as the day might be a weekend. How can I code that precisely?
I hope you can understand my problems and give me a hint, how I can proceed.
The third screenshot with the black background is from my data that I have already imported to Stata.


Best regards,
Nils
I am facing the following problem.
I would like to calculate acquisition premiums by using the targets share price minus the share price 4 weeks prior to deal announcement.
I retrieved my share price list from Datastream and it looks in the following way:
In the first column of the excel sheet I have the dates, and in the following columns I have the companies ISINs as headers and then the share prices (see attached screenshot).
Now I have to match the data with my Deal Datasheet using the target companies ISIN.
In my Deal Datasheet in Stata I already created the variable Target_ISIN. However, in the Share Price Excelsheet, the ISINs are in the first row, so if I import them to stata with first row as headers, I cannot match them with the variable of my master list "Target_ISIN".
When I transpose the data in the Excel sheet, I obtain a column with the firms' ISINs, however then I face a problem by having the dates as variable names.
Do you have any ideas, how I can transform and match these data and create my variable "Acquisition Premium"?
I did a lot of research to find solutions, but I could not find many information about calculating acquisition or bid premiums using daily share prices from Datastream.
Another problem is, that the date "30 days prior to deal announcement" might not exist, as the day might be a weekend. How can I code that precisely?
I hope you can understand my problems and give me a hint, how I can proceed.
The third screenshot with the black background is from my data that I have already imported to Stata.
Best regards,
Nils
Comment