PRnd | R Documentation |
Compute the ND test statistic of Pena and Rodriguez (2006, JSPI).
PRnd(x, m = 10, p = 0, q = 0)
x |
time series. |
m |
the maximum number of lag of correlation to test. |
p |
AR order. |
q |
MA order. |
PRnd
function outputs the ND test statistic and its p-value.
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.
y=arima.sim(n=500,list(ar=c(0.8,-0.6,0.7)))
PRnd(y,10,3,0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.