Description Usage Arguments Value Examples
This function takes an xts object of returns and scales it to the volatility
specified by target.vol
. This is useful when you want to put compare
the performance of different assets. Putting all assets on the same risk
level is important, otherwise comparisons are not meaningful.
1 | volAdjust(a, target.vol = 1)
|
a |
an xts object of asset returns |
target.vol |
a target volatility expressed in annualized terms. So, 10 annualized volatility should be passed as .10/sqrt(12) for monthly data. Default is 1.0. Meaning, the function will not alter the series if no target volatility is specified. |
an xts object of returns that has been scaled to have a
standard deviation equal to target.vol
.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.