Learn R Programming

varband (version 0.9.0)

ar_gen: Generate an autoregressive model.

Description

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

Usage

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

Run this code
true_ar <- ar_gen(p = 50, phi = c(0.5, -0.4, 0.1))

Run the code above in your browser using DataLab