Description Usage Arguments Details Value See Also Examples
Given a weight vector, w
, and an xts object of returns, R
this
will return the weighted average volatility assuming all the assets are
perfectly uncorrelated. (ie. all pairwise covariances are zero)
If equal.wt=TRUE
, then w
is ignored. This is the default.
Otherwise, w
is used for the weight vector.
1 |
w |
a weight vector equal in length to the numnber of columns of R. |
R |
an xts object of returns. |
equal.wt |
a flag indicating whether or not to apply equal weights. Defualt is TRUE. |
scale |
the annualization factor for the data. If supplied, this will scale the return volatilities to annualized volatilities. Default is 1. |
This function is useful for calculations like the Diversification Ratio where the weighted average volatility is in the numerator and the fully correlated volatility of the portfolio is in the denominator.
a numeric value equal to the weighted average volatility of the assets.
portfolioVol, divRatio
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.