Description Usage Arguments Value Author(s) Examples
This utility calculates simple moving average, with option to backfill for NA.
1 |
x |
numeric, the time series. |
order |
a positive integer to specify order of moving average. |
na.backfill |
logical, specify whether to backfill for NA. Default is |
numeric, simple moving average, same length as x.
Stephen H. Lihn
1 2 | x <- 1:100
a <- ldhmm.sma(x, 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.