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

set.portfolio.moments_v1

set portfolio moments for use by lower level optimization functions


Description

set portfolio moments for use by lower level optimization functions

Usage

set.portfolio.moments_v1(R, constraints, momentargs = NULL, ...)

Arguments

R

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

constraints

an object of type "constraints" specifying the constraints for the optimization, see constraint

momentargs

list containing arguments to be passed down to lower level functions, default NULL

...

any other passthru parameters FIXME NOTE: this isn't perfect as it overwrites the moments for all objectives, not just one with clean='boudt'


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.