testTVACD | R Documentation |
Tests if the parameters are time-varying.
testTVACD(fitModel, K = 2, type = "total", robust = TRUE)
fitModel |
a fitted ACD model, i.e. an object of class "acdFit". |
K |
the order of the logistic transition function used for the alternative hypothesis. |
type |
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' |
robust |
if |
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:
chi2 |
the value of the LM statistic. |
pv |
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.
testRmACD
, testSTACD
.
fitModel5000obs <- acdFit(adjDurData[1:5000,]) testTVACD(fitModel5000obs, K = 2, type = "total", robust = TRUE) testTVACD(fitModel5000obs, K = 2, type = "intraday", robust = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.