Learn R Programming

dbacf (version 0.2.8)

symBandedToeplitz: Creates a symmetric banded Toeplitz matrix

Description

Creates a symmetric banded Toeplitz matrix

Usage

symBandedToeplitz(x, n)

Value

An \(\code{n} \times \code{n}\) symmetric banded Toeplitz matrix whose entries in main band are given by object x.

Arguments

x

numeric vector or an object of class dbacf.

n

integer specifying number of columns (rows) of banded matrix.

See Also

nearPDToeplitz, bandSparse

Examples

Run this code
alphas <- c(-2, 0.5, -4)
(true.acf <- ARMAacf(ma = alphas))
symBandedToeplitz(true.acf, n = 10)

Run the code above in your browser using DataLab