Description Usage Arguments Author(s) See Also Examples
This function calculates the standard deviation estimate of asset returns over a rolling window
1 |
R |
xts or zoo object of asset returns |
width |
width of rolling window |
Ross Bennett
1 2 3 | data(crsp_weekly)
R <- largecap_weekly[,1:4]
tail(rollSD(R, 10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.