Description Usage Arguments Value Examples
Calculates the weights of a tangency portfolio strategy.
1 | port_estim_tang(Sigma, mu, rf = 0)
|
Sigma |
a pxp matrix, the covariance matrix of asset returns. |
mu |
a vector, the expected returns. |
rf |
a double, the assumed risk-free return. Default value is 0. |
a vector of length p with the weights of the portfolio.
1 2 3 4 5 | data(sp500_rets)
example_rets <- sp500_rets[,2:11]
covMat <- var(example_rets)
muVec <- colMeans(example_rets)
port_estim_tang(covMat, muVec)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.