Learn R Programming

PortfolioAnalytics (version 2.0.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