Learn R Programming

MTS (version 1.2.1)

diffM: 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.

Value

The differenced time series

Details

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

Examples

Run this code
# NOT RUN {
data("mts-examples",package="MTS")
zt=log(qgdp[,3:5])
xt=diffM(zt)
# }

Run the code above in your browser using DataLab