Good evening,
this is my question: is it statistically correct to calculate the R2 with the formula (Pearson correlation )^2 in an autoregressive model without intercept?
I have calculated it with the formula (Pearson correlation )^2 in a proc autoreg function calculating a backstep multivariate analysis with the method=ITYW.
Thank you in advance,
Olga
Hello,
For autoregression, BIC | AIC and AICC are much better goodness-of-fit measures than R².
I wouldn't use R² when dealing with time series regression.
Also, you calculate the Pearson correlation between what and what?
BR, Koen
I have moved this topic-thread to
"SAS Forecasting and Econometrics" - board.
Koen
The general formula of R2 is 1 - uss(residual)/css(Y) .
But if there is only one independent variable(a.k.a x variable), I think R2 =(Pearson correlation )^2
proc reg data=sashelp.class plot=none;
model weight=age height;
output out=want p=p r=r;
quit;
proc sql;
select 1-uss(r)/css(weight) as R_square from want;
quit;
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.