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

equal.weight

Create an equal weight portfolio


Description

This function calculates objective measures for an equal weight portfolio.

Usage

equal.weight(R, portfolio, ...)

Arguments

R

an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns

portfolio

an object of type "portfolio" specifying the constraints and objectives for the optimization

...

any other passthru parameters to constrained_objective

Details

This function is simply a wrapper around constrained_objective to calculate the objective measures in the given portfolio object of an equal weight portfolio. The portfolio object should include all objectives to be calculated.

Value

a list containing the returns, weights, objective measures, call, and portfolio object

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.