Description Usage Arguments Value Examples
Calculates the weights of a naive portfolio strategy.
1 |
p |
an integer, specifying the number of stocks. |
a vector of length p with the weights of the portfolio.
1 2 3 | data(sp500_rets)
example_rets <- sp500_rets[,2:11]
port_estim_naive_slim(dim(example_rets)[2])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.