Effacer les filtres
Effacer les filtres

Retrieving and count missing delisting return from last trading day

1 vue (au cours des 30 derniers jours)
Yoyo
Yoyo le 22 Sep 2021
I have list of stocks identified by PERMNO. I want to find out if the last trading day of each stock has a delisting return (DLRET) and how many delisting returns are missing in total in the data. In the first picture we see that PERMO 10000 last trading day is 1987.06.30 and has a delisting return 0, so I don't need to count it (count if it is NaN). The last date in the dataset is 2011.12.30 which means that if the last trading date is this date, then it should not count because it is not delisted. For example in picture 2, PERMNO 10001 should not count as the missing delisting return is because the last date is 2011.12.30, when the dataset ends and the stock is not delisted.
Can someone help with a code that can retreive all the delisting returns and count all delisting returns that are missing in the dataset?

Réponses (0)

Catégories

En savoir plus sur Transaction Cost Analysis dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by