Begin your reference from lag 0.
There are three intervals at lags 0, 1, and 2 before the first significant spike ---> shift=3
A two spike build up at lags 4 and 5 following the first significant spike ---> numerator=1,2
After lag 5, there is decaying significance ---> denominator=1
If there was no decay (an immediate drop to non-significance after lag 5) ---> denominator=0
Your estimate statement in PROC ARIMA should look something like:
estimate input=(3$(1 2)/(1)X) method=ml; run;
Once fit, evaluate the residuals for appropriate AR and MA orders and re-estimate if necessary to obtain WN residuals.
Begin your reference from lag 0.
There are three intervals at lags 0, 1, and 2 before the first significant spike ---> shift=3
A two spike build up at lags 4 and 5 following the first significant spike ---> numerator=1,2
After lag 5, there is decaying significance ---> denominator=1
If there was no decay (an immediate drop to non-significance after lag 5) ---> denominator=0
Your estimate statement in PROC ARIMA should look something like:
estimate input=(3$(1 2)/(1)X) method=ml; run;
Once fit, evaluate the residuals for appropriate AR and MA orders and re-estimate if necessary to obtain WN residuals.
No problem, very glad to help.
You asked how to calculate the r-square of an ARIMA model. My first thought is why do you want to calculate r-square?
If you want a goodness-of-fit statistic to evaluate how well your model fits the data, I'd recommend choosing either AIC or SBC instead of r-square.
Unlike r-square that will never decrease as the number of model parameters increases, both AIC and SBC try to ensure the model is parsimonious. AIC and SBC are standard PROC ARIMA output when build a model.
That said, the link below walks through calculating r-square from output in PROC ARIMA.
http://support.sas.com/kb/37/955.html
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.