Learn R Programming

simStateSpace (version 1.2.15)

SpectralRadius: Spectral Radius

Description

Computes the spectral radius of a square matrix, defined as the maximum modulus (absolute value) of its eigenvalues. The spectral radius is often used to assess the stability of systems such as vector autoregressive (VAR) models: a system is considered stationary if the spectral radius of its transition matrix is strictly less than 1.

Usage

SpectralRadius(x)

Value

Numeric value representing the spectral radius of x.

Arguments

x

Numeric square matrix.

Author

Ivan Jacob Agaloos Pesigan

See Also

Other Simulation of State Space Models Data Functions: LinSDE2SSM(), LinSDECovEta(), LinSDECovY(), LinSDEMeanEta(), LinSDEMeanY(), ProjectToHurwitz(), ProjectToStability(), SSMCovEta(), SSMCovY(), SSMInterceptEta(), SSMInterceptY(), SSMMeanEta(), SSMMeanY(), SimAlphaN(), SimBetaN(), SimBetaN2(), SimBetaNCovariate(), SimCovDiagN(), SimCovN(), SimIotaN(), SimNuN(), SimPhiN(), SimPhiN2(), SimPhiNCovariate(), SimSSMFixed(), SimSSMIVary(), SimSSMLinGrowth(), SimSSMLinGrowthIVary(), SimSSMLinSDEFixed(), SimSSMLinSDEIVary(), SimSSMOUFixed(), SimSSMOUIVary(), SimSSMVARFixed(), SimSSMVARIVary(), TestPhi(), TestPhiHurwitz(), TestStability(), TestStationarity()

Examples

Run this code
# Matrix with eigenvalues less than 1
x <- matrix(
  data = c(
    0.5, 0.3,
    0.2, 0.4
  ),
  nrow = 2
)
SpectralRadius(x)

# Matrix with eigenvalues greater than 1
y <- matrix(
  data = c(
    1.2, 0.3,
    0.4, 0.9
  ),
  nrow = 2
)
SpectralRadius(y)

Run the code above in your browser using DataLab