View source: R/apply_ar_on_ts.R
Apply autoregression of order 2 on timeseries This function applies autoregression of order 2 using a numeric vector (predicts next value in series given previous 2)
1 | apply_ar_on_ts(s, a1, a2)
|
s |
A numeric vector representing the series. |
a1 |
A coefficient of first previous value in the series. |
a2 |
A coefficient of second previous value in the series. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.