Performs differencing of multiple time series, with possibly different orders for each time series.
Arguments
- data
A (\(T\)x\(N\))-matrix of \(N\) time series with \(T\) observations. Data may also be in a time series format (e.g.
ts
,zoo
orxts
) or data frame.- d
An \(N\)-dimensional vector containing the orders
- keep_NAs
Logical indicator whether or not to keep the
NA
values resulting from differencing at the beginning of the sample. Default isTRUE
. IfFALSE
, the entire row containing theNA
values is removed.