lagmatrix: Matrix of lagged values of a vector

View source: R/martingaleDifference.R

lagmatrixR Documentation

Matrix of lagged values of a vector

Description

Matrix of lagged values of a vector

Usage

lagmatrix(x, max.lag)

Arguments

x

vector

max.lag

number of lags to include

Value

matrix of size (length(x), max.lag+1) of 0-order to max.lag-order lags of x


ajmcneil/spectralBacktest documentation built on Dec. 31, 2022, 8:17 p.m.