Learn R Programming

VARshrink (version 0.3.3)

roots_sh: Eigenvalues of the companion coefficient matrix of a VAR(p)

Description

This is a variant of vars::roots() for an object of class "varshrinkest", VAR parameters estimated by VARshrink().

Usage

roots_sh(x, modulus = TRUE)

Value

A vector with the eigenvalues of the companion matrix, or their modulus (default).

Arguments

x

An object of class "varshrinkest"

modulus

TRUE for modulus of the roots.

See Also

roots

Examples

Run this code
data(Canada, package = "vars")
y <- diff(Canada)
estim <- VARshrink(y, p = 2, type = "const", method = "ridge")
roots_sh(estim)

Run the code above in your browser using DataLab