Hi @DavyJones ,
@Ksharp 's explanation and your understanding are correct. Based on the table you provided, the values in the "Autocorrelations" portion of the "Autocorrelation Check for White Noise" table contain the autocorrelation coefficients at the individual lags. For example, the first row in the table contains the autocorrelation coefficients at lag1, lag2, ...lag6. In other words, the fifth value in that row, 0.427, is the autocorrelation coefficient at lag 5. The second row contains the autocorrelation coefficients for lags 7, 8, 9,...12. The third value in the second row, 0.375, is the autocorrelation coefficient at lag 9. If you add the OUTCOV= option to the IDENTIFY statement, you can create a data set with the autocorrelations in a format that you might prefer. For example:
proc arima data=mydata plot(only)=(series(corr)) ;
identify var=tsvar nlag=20 outcov=mycorr;
run;
proc print data=mycorr;
run;
Regarding your second question, the Chi-Square statistic that is printed on each row is the Ljung-Box statistic. It is used to test the null hypothesis that the series is white noise (ie. no autocorrelation). These test statistics are computed by using sets of autocorrelation coefficients, therefore, the first Chi-Square statistic and associated DF and Pr>ChiSq values are based on the set of the first 6 autocorrelations. The Chi-Square statistic and its associated DF and p-value in the second row are based on the set of the first 12 autocorrelations, etc.
If you want to either obtain a test of significance on each individual autocorrelation coefficient or compute the Ljung-Box test statistic using autocorrelations up through lag "p", then you can use the TIMESERIES procedure. Please see the following code for an example:
proc timeseries data=mydata outcorr=corr plots=corr;
var tsvar;
corr lag n acf acfprob wn wnprob /nlag=30;
run;
proc print data=corr;
run;
For additional details on the calculations performed by the CORR statement, please see the following documentation link:
https://go.documentation.sas.com/?docsetId=etsug&docsetTarget=etsug_timeseries_details08.htm&docsetVersion=15.1&locale=en
I hope this helps!
DW
... View more