I have a data frame where each column represents a stock, each row represents a date, and the entries are returns. The stock returns span a certain time frame. My goal is to make portfolios and analyze the portfolio metrics.
I want to apply block bootstrapping to generate periods of multiple durations. However, not all stocks have data available for the entire timeframe due to delisting or the stock not existing during certain periods.
Since I want to run the bootstrap across all stocks to capture correlations, rather than on individual stock returns, how can I address the issue of missing values (NAs) caused by some stocks not existing at certain times?