ar_gen: Generate an autoregressive model.

Description Usage Arguments Value Examples

View source: R/model_gen.R

Description

Generate lower triangular matrix with strict bandwidth. See, e.g., Model 1 in the paper.

Usage

1
ar_gen(p, phi_vec)

Arguments

p

the dimension of L

phi_vec

a K-dimensional vector for off-diagonal values

Value

a p-by-p strictly banded lower triangular matrix

Examples

1
true_ar <- ar_gen(p = 50, phi = c(0.5, -0.4, 0.1))

varband documentation built on May 2, 2019, 12:45 p.m.