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

thresholdTest

Threshold nonlinearity test


Description

Computes the likelihood ratio test for threshold nonlinearity with H0 being an AR process and H1 a TAR model.

Usage

thresholdTest(
  time.series,
  p,
  d = 1,
  lower.percent = 0.25,
  upper.percent = 0.75
)

Arguments

time.series

The original time.series.

p

The order of the AR process.

d

Delay used for the threshold value in the TAR process.

lower.percent

The threshold value is searched over an interval defined by lower.percent and upper.percent of the time series values. This defines the lower percent.

upper.percent

The threshold value is searched over an interval defined by lower.percent and upper.percent of the time series values. This defines the upper percent.

Value

A list containing

  • p.value: p-value of the test

  • test.statistic: Likelihood ratio test statistic.

  • percentiles: Since the search for the threshold parameter may occur in a narrower interval than the one specified by the user, the effective lower and upper percents are returned here.

Note

Adapted from the tlrt function of the TSA package.

Author(s)

Kung-Sik Chan

References

Chan, K.S. (1990). Percentage points of likelihood ratio tests for threshold autoregression. Journal of Royal Statistical Society, B 53, 3, 691-696.

See Also


nonlinearTseries

Nonlinear Time Series Analysis

v0.2.10
GPL-3
Authors
Constantino A. Garcia [aut, cre], Gunther Sawitzki [ctb]
Initial release
2020-6-10

We don't support your browser anymore

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