Description Usage Arguments Details
Generate portfolios along an efficient frontier.
1 2 | efficientFrontier(R, nPortfolios = 25, minBox = 0, maxBox = 1,
groupList = NULL, groupMin = NULL, groupMax = NULL)
|
R |
xts object of asset returns |
nPortfolios |
number of portfolios to generate along efficient frontier |
minBox |
box constraint minimum |
maxBox |
box constraint maximum |
groupList |
list specifying asset groups |
groupMin |
group constraint minimum |
groupMax |
group constraint maximum |
This is a wrapper function for code in PortfolioAnalytics to initialize a portfolio and create an efficint frontier in mean - standard deviation space. Box constraints and group constraints are supported for constrained optimization to generate portfolios along the efficient frontier.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.