Learn R Programming

PortfolioAnalytics (version 1.0.3636)

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)

Arguments

R
xts object of asset returns
weights
vector of asset weights

Value

numeric value of the portfolio variance