Learn R Programming

PortfolioAnalytics (version 2.1.0)

portfolio.moments.boudt: Portfolio Moments

Description

Set portfolio moments for use by lower level optimization functions using a statistical factor model based on the work of Kris Boudt.

Usage

portfolio.moments.boudt(R, portfolio, momentargs = NULL, k = 1, ...)

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, see portfolio.spec

momentargs

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

k

number of factors used for fitting statistical factor model

...

any other passthru parameters