<Performing and cross-validating random forest models on each asset included in a data.frame object, given a matrix of risk factors obtained with PCA>
1 | factorforest(factors, data, ntr = 800, window = 100)
|
factors |
Data.frame object containing time series of the estimated factors. |
data |
Data.frame object containing prices time series of each asset in the market. |
ntr |
Integer, number of observations of the training dataset. |
window |
Integer, number of observations to see in the diagnostic plots. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.