Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

meanvar.efficient.frontier

Generate the efficient frontier for a mean-variance portfolio


Description

This function generates the mean-variance efficient frontier of a portfolio specifying the constraints and objectives. The portfolio object should have two objectives: 1) mean and 2) var (or sd or StdDev). If the portfolio object does not contain these objectives, they will be added using default parameters.

Usage

meanvar.efficient.frontier(portfolio, R, n.portfolios = 25,
  risk_aversion = NULL, ...)

Arguments

portfolio

a portfolio object with constraints created via portfolio.spec

R

an xts or matrix of asset returns

n.portfolios

number of portfolios to plot along the efficient frontier

risk_aversion

vector of risk_aversion values to construct the efficient frontier. n.portfolios is ignored if risk_aversion is specified and the number of points along the efficient frontier is equal to the length of risk_aversion.

...

passthru parameters to optimize.portfolio

Value

a matrix of objective measure values and weights along the efficient frontier

Author(s)

Ross Bennett


PortfolioAnalytics

Portfolio Analysis, Including Numerical Methods for Optimization of Portfolios

v1.1.0
GPL-2 | GPL-3
Authors
Brian G. Peterson [cre, aut, cph], Peter Carl [aut, cph], Kris Boudt [ctb, cph], Ross Bennett [ctb, cph], Hezky Varon [ctb], Guy Yollin [ctb], R. Douglas Martin [ctb]
Initial release
2018-05-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.