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-EQS efficient frontiers will be generated.
meanrisk.efficient.frontier(
portfolio,
R,
optimize_method = "CVXR",
n.portfolios = 25,
risk_type = "StdDev",
compare_port = c("StdDev", "ES"),
...
)
a matrix of objective measure values and weights along the efficient frontier
a portfolio object with constraints and objectives created via portfolio.spec
an xts or matrix of asset returns
the optimize method to get the efficient frontier, default is CVXR
number of portfolios to generate the efficient frontier
one of "StdDev", "ES" and "EQS", which determines the type of basic efficient frontier.
vector composed of any risk "StdDev", "ES", "EQS", for example, compare_port=c("StdDev", "ES")
passthru parameters to optimize.portfolio
Xinran Zhao