Hi
I would like to keep by company_num the last observation of each month. The data looks as follows

Data is in long format and the variable company_num goes from 1 to 5563
The problem is that last observation of the month might not be the same for every company_num. This means that it could be that for
company_num=1 the last observation in January 2003 is 31jan2003 but for
company_num=2 the last observation in January 2003 is 30jan2003.
Any ideas?
Thanks
I would like to keep by company_num the last observation of each month. The data looks as follows
Data is in long format and the variable company_num goes from 1 to 5563
The problem is that last observation of the month might not be the same for every company_num. This means that it could be that for
company_num=1 the last observation in January 2003 is 31jan2003 but for
company_num=2 the last observation in January 2003 is 30jan2003.
Any ideas?
Thanks
Comment