Learn R Programming

simts (version 0.2.2)

diff_cpp: Lagged Differences in Armadillo

Description

Returns the ith difference of a time series of rth lag.

Usage

diff_cpp(x, lag, differences)

Value

A vector containing the differenced time series.

Arguments

x

A vec that is the time series

lag

A unsigned int that indicates the lag

differences

A dif that indicates how many differences should be taken

Author

JJB