Description Usage Arguments Value Examples
Allows the execution of specific optimization functions.
1 | port_estim(Sigma, est_type = "Naive", ...)
|
Sigma |
a pxp matrix, the covariance matrix of asset returns |
est_type |
a function for portfolio optimization |
... |
additional arguments to be passed to the respective function, according to est_type. |
returns the weights, estimated according the est_type portfolio.
1 2 3 4 5 6 7 | data(sp500_rets)
example_rets <- sp500_rets[,2:11]
covMat <- var(example_rets)
port_estim(covMat, "GMV")
muVec <- colMeans(example_rets)
port_estim(covMat, "Tang", muVec)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.