View source: R/extract.efficient.frontier.R
meanrisk.efficient.frontier | R Documentation |
This function generates the mean-risk efficient frontier of a portfolio
specifying the constraints and objectives. The risk_type
object
is for the basic mean-risk efficient frontier, other efficient frontiers
will be generated with the same target returns. All mean-StdDev, mean-ES
and mean-CSM efficient frontiers will be generated.
meanrisk.efficient.frontier(
portfolio,
R,
optimize_method = "CVXR",
n.portfolios = 25,
risk_type = "StdDev",
compare_port = c("StdDev", "ES"),
...
)
portfolio |
a portfolio object with constraints and objectives created via |
R |
an xts or matrix of asset returns |
optimize_method |
the optimize method to get the efficient frontier, default is CVXR |
n.portfolios |
number of portfolios to generate the efficient frontier |
risk_type |
one of "StdDev", "ES" and "CSM", which determines the type of basic efficient frontier. |
compare_port |
vector composed of any risk "StdDev", "ES", "CSM", for example, compare_port=c("StdDev", "ES") |
... |
passthru parameters to |
a matrix of objective measure values and weights along the efficient frontier
Xinran Zhao
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.