Hello,
I'm working with a data set of all non-financial firms on the Swiss stock exchange.
Using daily returns I have created monthly returns.
I'm using a timeframe of July 2009 till June 2019. I would like to only keep the firms if they have an observation for all those months, i.e. they have 120 monthly returns.
Is there an easy way to delete all firms that do not have an observation for all 120 months?
Kind regards.
I'm working with a data set of all non-financial firms on the Swiss stock exchange.
Using daily returns I have created monthly returns.
I'm using a timeframe of July 2009 till June 2019. I would like to only keep the firms if they have an observation for all those months, i.e. they have 120 monthly returns.
Is there an easy way to delete all firms that do not have an observation for all 120 months?
Kind regards.

Comment