Learn R Programming

PortfolioAnalytics (version 1.1.0)

diversification: Function to compute diversification as a constraint

Description

Diversification is defined as 1 minus the sum of the squared weights $$diversification = 1 - sum(w^2)$$

Usage

diversification(weights)

Arguments

weights

vector of asset weights

Author

Ross Bennett