Skip to contents

The function computes the eigenvalues of the input matrix x. It checks if all eigenvalues have moduli less than 1. If all eigenvalues have moduli less than 1, the system is considered stationary.

Usage

TestStationarity(x, margin = 1)

Arguments

x

Numeric matrix.

margin

Numeric scalar specifying the stationarity threshold. Values less than 1 indicate stricter stationarity criteria.

Author

Ivan Jacob Agaloos Pesigan

Examples

x <- matrix(
  data = c(0.5, 0.3, 0.2, 0.4),
  nrow = 2
)
TestStationarity(x)
#> [1] TRUE

x <- matrix(
  data = c(0.9, -0.5, 0.8, 0.7),
  nrow = 2
)
TestStationarity(x)
#> [1] FALSE