invert_difference | R Documentation |
Invert first-order and seasonal differencing (go from seasonally differenced time series to original time series).
invert_difference(dy, y, d, D, frequency)
dy |
a first-order and/or seasonally differenced univariate time series with values like y_t - y_t - ts_frequency |
y |
a univariate time series or numeric vector with values like y_t - ts_frequency. |
d |
order of first differencing |
D |
order of seasonal differencing |
frequency |
frequency of time series. Must be provided if y is not of class "ts" and D > 0. See the help for stats::ts for more. |
y may have longer length than dy. It is assumed that dy "starts" one time index after y "ends": that is, if y is of length T, d = 0, and D = 1 then dy1 = yT + 1 - yT + 1 - ts_frequency
a time series object (of class 'ts')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.