var.portfolio: Calculate portfolio variance
Description
This function is used to calculate the portfolio variance via a call to
constrained_objective when var is an object for mean variance or quadratic
utility optimization.
Usage
var.portfolio(R, weights)
Value
numeric value of the portfolio variance
Arguments
- R
xts object of asset returns
- weights
vector of asset weights