Description Usage Arguments Examples
This function solves for risk budge portfolio weights
1 | wt_RiskBudget(covmat, target = NULL, optctrl = ctrl(), ...)
|
covmat |
Covariance matrix |
target |
Target of Risk Budget. The sum of budget should be 1 |
optctrl |
Object of class Rcpp_CTRL. |
... |
Ellipsis argument is passed down to nlminb(). |
1 2 3 4 5 6 7 8 | ## Not run:
ret = asset_data
R = ret[,c(1,5,9)]
covmat = cov(R)
target = c(0.4, 0.3, 0.3)
weight = RiskBudget(covmat, target)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.