Learn R Programming

MSTest (version 0.1.5)

ts_lagged: Lagged Time Series Data

Description

This function takes a (T x 1) vector Y and returns the (T-p x 1) vector y and the (T-p x p) matrix of lagged observations.

Usage

ts_lagged(Y, p)

Value

List with vector y (vector of lagged Y) and matrix X of lagged observations.

Arguments

Y

Vector with time series observations.

p

integer for the number of lags to use in estimation. Must be greater than or equal to 1.