optimal | R Documentation |
Performance statistics of the optimal zero-cost unit-variance portfolio
optimal(x, y, n, w)
x |
= a matrix/data frame (indicators) |
y |
= a matrix/data frame (forward returns) |
n |
= a matrix/data frame (daily returns to train the risk model on) |
w |
= a numeric vector (the elements of which are: # : 1) number of trailing days to train the risk model on # : 2) number of principal components (when 0 raw return matrix is used) # : 3) number of bins (when 0, indicator is ptiled) # : 4) forward return window in days or months depending on the row space of <x>) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.