lag_windows: Collects and embeds lagged windows of data as a vector.

Description Usage Arguments Value See Also

Description

Order p determines size of the recent lags, and P and freq can be used to create seasonal lags.

Usage

1
2
lag_windows(x, p = 0, P = 0, freq = 1, shift = 0, no_peeking = TRUE,
  pstr = deparse(substitute(x)))

Arguments

x

data input (can handle multi-column data, such as data.frames)

p

window length

P

seasonal window length

freq

seasonal period

shift

if the time-series is to be shifted

no_peeking

if TRUE, lags <= 0 (from now and future) are removed

pstr

name of datacolumn

Value

a matrix of lagged windows

See Also

centered_lagged_windows, seasonal_lag_windows


fnoorian/mltsp documentation built on May 16, 2019, 1:48 p.m.