Learn R Programming

MTS (version 1.2.1)

archTest: ARCH test for univariate time series

Description

Perform tests to check the conditional heteroscedasticity in a time series. The Ljung-Box statistics of squared series and a rank-based Ljung-Box test are used.

Usage

archTest(rt, lag = 10)

Arguments

rt

A scalar time series. If rt is a matrix, only the first column is used.

lag

The number of lags of ACF used in the Ljung-Box statistics. The default is 10.

Value

The Q-statistic and its p-value. Also, the rank-based Q statistic and its p-value.

Details

The Ljung-Box statistics based on the squared series are computed first. The rank series of the squared time series is than used to test the conditional heteroscedasticity.

See Also

MarchTest

Examples

Run this code
# NOT RUN {
rt=rnorm(200)
archTest(rt)
# }

Run the code above in your browser using DataLab