Description Usage Arguments Details
View source: R/macro_helpers_general.R
Generates a Z (design) matrix for a VAR model.
1 |
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.