Description Usage Arguments Value Examples
Allows the execution of all included optimization functions.
1 | port_estim_wrapper(Sigma, estim_func, ...)
|
Sigma |
a pxp matrix, the covariance matrix of asset returns |
estim_func |
a function for portfolio optimization |
... |
additional arguments to be passed to estim_func |
returns the value of the executed function estim_func
1 2 3 4 5 6 7 | data(sp500_rets)
example_rets <- sp500_rets[,2:11]
covMat <- var(example_rets)
port_estim_wrapper(covMat, port_estim_gmv)
muVec <- colMeans(example_rets)
port_estim_wrapper(covMat, port_estim_tang, muVec)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.