testTVACD: LM test against Time-Varying ACD models (Meitz and...

View source: R/testTVACD.R

testTVACDR Documentation

LM test against Time-Varying ACD models (Meitz and Terasvirta, 2006)


Tests if the parameters are time-varying.


testTVACD(fitModel, K = 2, type = "total", robust = TRUE)



a fitted ACD model, i.e. an object of class "acdFit".


the order of the logistic transition function used for the alternative hypothesis.


either "total" or "intraday". If "total", the possible time varying parameters under the alternative varies over the total time of the sample, whereas for "intraday", the time variable is time of the day. See 'Details'


if TRUE the LM statistic will be calculated using the "robust" version, making its asymptotic behavior unaffected by possible misspecification of the error term distribution (Meitz and Terasvirta, 2006).


This function tests the fitted standard ACD model against the TVACD model of Meitz and Terasvirta (2006). The TVACD model lets the ACD parameters vary over time by a logistic transition function.

In one specification, the time variable is total time, and a test rejecting the null in favor of this alternative specification would indicate that the ACD parameters are changing over time over the total sample.

The other specification lets the parameters be intraday varying, by letting the transition variable be the time of the day. Failing this test could indicate that the diurnal adjustment was inadequate at removing any diurnal component.


a list of:


the value of the LM statistic.


the pvalue of the test statistic.


Markus Belfrage


Meitz, M. and Terasvirta, T. (2006). Evaluating models of autoregressive conditional duration. Journal of Business and Economic Statistics 24: 104-124.

See Also

testRmACD, testSTACD.


fitModel5000obs <- acdFit(adjDurData[1:5000,])
testTVACD(fitModel5000obs, K = 2, type = "total", robust = TRUE)

testTVACD(fitModel5000obs, K = 2, type = "intraday", robust = TRUE)

ACDm documentation built on Nov. 16, 2022, 5:09 p.m.