Hello Stata Community,
I would like to thank all of you for the helpful comments and posts that I have been using for the past two years and today I registered as a member.
Issue: I am trying to merge two datasets based on cusip and daydate (MM/DD/YY). Both of my datasets have unique identifiers csuip and daydate with the same cusip length; 9digit and same day format; M/D/Y When I tried to merge based on 1:1, 1:M, OR M:1 , it shows the error message "variables cusip daydate do not uniquely identify observations in the master data".
Please note that I have either one or many cusip in each dataset for each firm because each company has several events on different dates. So, I am trying to match that date and the company based on the cusip and date to run an event study.
Cusip in the second dataset was retrieved from SAS date with shows the number of dates but I converted all that on Excel and I think it was done well after randomly checking.
Below is a short data for this issue
the first dataset
Cusip Date
The second dataset
Thank you all in advance.
I would like to thank all of you for the helpful comments and posts that I have been using for the past two years and today I registered as a member.
Issue: I am trying to merge two datasets based on cusip and daydate (MM/DD/YY). Both of my datasets have unique identifiers csuip and daydate with the same cusip length; 9digit and same day format; M/D/Y When I tried to merge based on 1:1, 1:M, OR M:1 , it shows the error message "variables cusip daydate do not uniquely identify observations in the master data".
Please note that I have either one or many cusip in each dataset for each firm because each company has several events on different dates. So, I am trying to match that date and the company based on the cusip and date to run an event study.
Cusip in the second dataset was retrieved from SAS date with shows the number of dates but I converted all that on Excel and I think it was done well after randomly checking.
Below is a short data for this issue
the first dataset
Cusip Date
172967424 | 7/8/2014 |
172967424 | 1/25/2008 |
172967424 | 6/19/2008 |
172967424 | 10/14/2010 |
172967424 | 6/9/2011 |
172967424 | 3/13/2012 |
172967424 | 4/18/2018 |
172967424 | 4/2/2014 |
172967424 | 11/13/2014 |
172967424 | 10/2/2006 |
172967424 | 8/9/2007 |
172967424 | 2/24/2010 |
172967424 | 7/17/2013 |
6/9/2011 | 172967424 |
6/10/2011 | 172967424 |
6/11/2011 | 172967424 |
6/13/2011 | 172967424 |
6/16/2011 | 172967424 |
6/17/2011 | 172967424 |
6/24/2011 | 172967424 |
6/27/2011 | 172967424 |
8/5/2011 | 172967424 |
2/4/2012 | 172967424 |
9/21/2012 | 172967424 |
10/31/2012 | 172967424 |
7/15/2013 | 172967424 |
9/4/2013 | 172967424 |
1/23/2014 | 172967424 |
Comment