I am trying to generate a selection matrix. To be more precise, I have data a DF which contains the constituents of the DJI for the last 30 years based on daily data (11231,30).