I've got an econometrics problem in which I have to compute in Matlab an AR(15) time series. After asking me to compute BIC and AIC values, the professor requests also the adjusted R squared statistics, but in this case I have no clue on how to compute it.
I've already implemented the AR model through the command 'arima('ARlags', 1:15)' and using the command 'estimate' I obtained the values of the constant, the 15 AR coefficients and the variance. I know how to compute the adjusted R squared: I have to calculate the sum of squares of residuals and total sum of squares and divide each by the degrees of freedom. However in this case I do not have, like in any statistics problem, the estimated values of my response, so I do not know how to calculate the residual sum of squares and then the adjusted R squared. Thanks in advance for any help
parcorr(zero_rate)
AR1=arima('ARlags', 1:15);
[est_AR1,EstParamCov1,logL1]=estimate(AR1,zero_rate);
[AIC1, BIC1]=aicbic(logL1,17,35);