diffx-rdiffx-ldiffx: Compute lagged differnces

Description Usage Arguments Examples

Description

Maturing lifecycle

Returns suitably lagged and iterated difference

Usage

1
2
3
4
5
diffx(x, n = 1L, order = 1L, rho = 1, fill = NA)

rdiffx(x, n = 1L, order = 1L, rho = NULL, fill = NA)

ldiffx(x, n = 1L, order = 1L, rho = 1, fill = NA)

Arguments

x

[univariate vector]

Univariate vector, numeric or ts object with only one dimension.

n

[positive integer(1): 1L]

Value indicating which lag to use.

order

[positive integer(1): 1L]

Value indicating the order of the difference.

rho

[numeric(1): NULL]

Value indicating the autocorrelation parameter. The purpose of this parameter is to provide quasi-differencing assuming the value falls within 0 and 1.

fill

[numeric or function: NA]

Numeric value(s) or function used to fill observations.

Examples

1
2
3
4
x <- c(2, 4, 8, 20)
diffx(x)
rdiffx(x)
ldiffx(x)

kvasilopoulos/transx documentation built on Jan. 26, 2021, 6:14 p.m.