Description Usage Arguments References Examples
Qu.test
Test statistic of Qu (2011) for the null hypotesis of true long memory
against the alternative of spurious long memory.
1 |
data |
data vector of length T. |
m |
bandwith parameter specifying the number of Fourier frequencies used
for the estimation usually |
epsilon |
trimming parameter |
Qu, Z. (2011): A Test Against Spurious Long Memory. Journal of Business and Economic Statistics, Vol. 29, No. 3, pp. 423 - 438.
1 2 3 4 5 6 7 8 9 | library(fracdiff)
T<-500
m<-floor(1+T^0.75)
series<-fracdiff.sim(n=T,d=0.4)$series
shift.series<-ARRLS.sim(T=500,phi=0.5, sig.shift=0.75, prob=5/T, sig.noise=1)
ts.plot(series, ylim=c(min(min(series),min(shift.series)),max(max(series),max(shift.series))))
lines(shift.series, col=2)
Qu.test(series,m=m, epsilon=0.05)
Qu.test(shift.series,m=m, epsilon=0.05)
|
$W.stat
[1] 0.4551643
$CriticalValues
eps=.02 eps=.05
alpha=.1 1.118 1.022
alpha=.05 1.252 1.155
alpha=.025 1.374 1.277
alpha=.01 1.517 1.426
$W.stat
[1] 1.812276
$CriticalValues
eps=.02 eps=.05
alpha=.1 1.118 1.022
alpha=.05 1.252 1.155
alpha=.025 1.374 1.277
alpha=.01 1.517 1.426
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.