rollsd | R Documentation |
-A function to compute the rolling standard deviation for a time series.
rollsd(cases, lag_t)
cases |
the time series of the newly observed cases per unit of time (ideally per day). |
lag_t |
integer - the size of the rolling window for which the rolling standard deviation is calculated (minimum/default value = 7, maximum recommended value = 30). |
data("Italy")
cases = mova(cases=Italy$Cases, r_a=7)
roll = rollsd(cases=cases,lag_t=7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.