arch_stat: ARCH LM Statistic

Description Usage Arguments Value Author(s)

View source: R/yanfei.R

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

1
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 documentation built on July 1, 2020, 7:12 p.m.