stockDataResample {portfolioBacktest} | R Documentation |
Generate random resamples from financial data
Description
This function is deprecated. Use instead financialDataResample()
.
Usage
stockDataResample(
X,
N_sample = 50,
T_sample = 2 * 252,
num_datasets = 10,
rm_stocks_with_na = TRUE
)
Arguments
X |
List of |
N_sample |
Desired number of financial instruments in each resample. |
T_sample |
Desired length of each resample (consecutive samples with a random initial time). |
num_datasets |
Number of resampled datasets (chosen randomly among the financial instrument universe). |
rm_stocks_with_na |
Logical value indicating whether to remove instruments with inner missing
values. Default is |
[Package portfolioBacktest version 0.4.1 Index]