diffM: Difference of multivariate time series

diffMR Documentation

Difference of multivariate time series

Description

Performs the difference operation of a vector time series

Usage

diffM(zt, d = 1)

Arguments

zt

A vector time series (T by k, with sample size T and dimension k)

d

Order of differencing. Default is d=1.

Details

When d = 1, the command is equivalent to apply(zt,2,diff)

Value

The differenced time series

Author(s)

Ruey S Tsay

Examples

data("mts-examples",package="MTS")
zt=log(qgdp[,3:5])
xt=diffM(zt)

MTS documentation built on April 11, 2022, 5:07 p.m.