Compute the ND test statistic of Pena and Rodriguez (2006, JSPI).
Usage
PRnd(x, m = 10, p = 0, q = 0)
Value
PRnd function outputs the ND test statistic and its p-value.
Arguments
x
time series.
m
the maximum number of lag of correlation to test.
p
AR order.
q
MA order.
References
Pena, D., and Rodriguez, J. (2006) A powerful Portmanteau test of lack of fit for time series. series. Journal of American Statistical Association, 97, 601-610.