Description Usage Arguments Details References Examples
Extracts the risk and return coordinates of the efficient frontier.
1 2 3 |
object |
an object of class |
frontier |
a character string denoting which part of the efficient portfolio should be extractacted. |
return |
character strings denoting which return measure
should be plotted. Allowed values for the
return are either |
risk |
character strings denoting which risk measure
should be plotted. Allowed values for the
risk measure are either |
auto |
a logical flag. If |
The automated risk detection, auto=TRUE
takes the
following decision:
1 2 3 4 5 6 7 8 9 | if (auto) {
Type = getType(object)
Estimator = getEstimator(object)
if (Type == "MV") risk = "cov"
if (Type == "MV" & Estimator != "covEstimator") risk = "sigma"
if (Type == "QLPM") risk = "sigma"
if (Type == "CVaR") risk = "CVaR"
}
|
Wuertz, D., Chalabi, Y., Chen W., Ellis A. (2009); Portfolio Optimization with R/Rmetrics, Rmetrics eBook, Rmetrics Association and Finance Online, Zurich.
1 2 3 4 5 6 7 8 9 10 11 | ## data -
Data = SMALLCAP.RET
Data = Data[, c("BKE", "GG", "GYMB", "KRON")]
Data
## portfolioFrontier -
Frontier = portfolioFrontier(Data)
## frontierPoints -
x = frontierPoints(Frontier, risk = "VaR", auto = FALSE)
x = frontierPoints(Frontier, risk = "CVaR", auto = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.