Learn R Programming

ACDm (version 1.0.3)

testRmACD: LM test of no Remaining ACD (Meitz and Terasvirta, 2006)

Description

Tests if there is any remaining ACD structure in the residuals

Usage

testRmACD(fitModel, pStar = 2, robust = TRUE)

Arguments

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

robust
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).

Value

a list of:
chi2
the value of the LM statistic.
pv
the pvalue of the test statistic.

Details

For the model

the function tests the null hypothesis

References

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

See Also

testTVACD, testSTACD.

Examples

Run this code
fitModel3000obs <- acdFit(adjDurData[1:3000,])
testRmACD(fitModel3000obs, pStar = 2, robust = TRUE)

Run the code above in your browser using DataLab