gen_Z: Generate Z matrix

Description Usage Arguments Details

View source: R/macro_helpers_general.R

Description

Generates a Z (design) matrix for a VAR model.

Usage

1
gen_Z(data, start_t, lags, include_intercept)

Arguments

data

Data frame (Y).

start_t

Which observation is considered as t = 1. Needs to be greater than the number of lags.

lags

Order of the VAR.

include_intercept

Boolean. Determines is an intercept should be used or not.

Details

Given a data frame, a starting point, a number of lags, and whether to include an intercept or not, creates a design matrix with correctly names columns.


ooelrich/oscbvar documentation built on Sept. 8, 2021, 3:31 p.m.