make_lags: Create Lag Matrix

View source: R/design-matrix.R

make_lagsR Documentation

Create Lag Matrix

Description

Creates a matrix of lagged values for a numeric vector.

Usage

make_lags(x, k)

Arguments

x

Numeric vector.

k

Integer; maximum lag order.

Value

A matrix with k columns containing lags 1 through k.


bivarhr documentation built on July 7, 2026, 1:06 a.m.