Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

arch_stat

ARCH LM Statistic


Description

Computes a statistic based on the Lagrange Multiplier (LM) test of Engle (1982) for autoregressive conditional heteroscedasticity (ARCH). The statistic returned is the R^2 value of an autoregressive model of order lags applied to x^2.

Usage

arch_stat(x, lags = 12, demean = TRUE)

Arguments

x

a univariate time series

lags

Number of lags to use in the test

demean

Should data have mean removed before test applied?

Value

A numeric value.

Author(s)

Yanfei Kang


tsfeatures

Time Series Feature Extraction

v1.0.2
GPL-3
Authors
Rob Hyndman [aut, cre] (<https://orcid.org/0000-0002-2140-5352>), Yanfei Kang [aut] (<https://orcid.org/0000-0001-8769-6650>), Pablo Montero-Manso [aut], Thiyanga Talagala [aut] (<https://orcid.org/0000-0002-0656-9789>), Earo Wang [aut] (<https://orcid.org/0000-0001-6448-5260>), Yangzhuoran Yang [aut], Mitchell O'Hara-Wild [aut] (<https://orcid.org/0000-0001-6729-7695>), Souhaib Ben Taieb [ctb], Cao Hanqing [ctb], D K Lake [ctb], Nikolay Laptev [ctb], J R Moorman [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.