BookmarkSubscribeRSS Feed
GS2
Obsidian | Level 7 GS2
Obsidian | Level 7

Hello,

 

I am using SAS 9.4 but my license does not support proc timeseries or proc arima, are there any good examples of how to perform a timeseries analysis without using these two procedures? For background, I have a dataset looking at procedures from 2010-2022 and I am looking at the rate of rate of an event pre/post implementation of an intervention. Thank you for any help! 

4 REPLIES 4
sbxkoenk
SAS Super FREQ

PROC GEE, PROC GENMOD, PROC GLIMMIX can be tried.

[EDIT two weeks later]

You might also use PROC MIXED for this. This paper has some information and examples:
SAS Global Forum 2020 -- Paper 4674-2020
Time After Time: Difference-in-Differences and Interrupted Time Series Models in SAS®
E Margaret Warton, Kaiser Permanente Northern California Division of Research

https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4674-2020.pdf

 

Koen

mkeintz
PROC Star

I admit ignorance of PROC GEE, GENMOD, and GLIMMIX.

 

But some timeseries analyses will depend crucially on accommodating serial autocorrelation of error terms.  Mostly in econometrics models.

 

Is that a relevant concern for this study?  If so, do these proc's provide a way of finding or controlling for this type of autocorrelation?

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
sbxkoenk
SAS Super FREQ



@mkeintz wrote:

I admit ignorance of PROC GEE, GENMOD, and GLIMMIX.

But some timeseries analyses will depend crucially on accommodating serial autocorrelation of error terms.  Mostly in econometrics models.

Is that a relevant concern for this study?  If so, do these proc's provide a way of finding or controlling for this type of autocorrelation?


Yes indeed, because in those procedures you can do "Repeated Measures Data Analysis". So there is no longer the assumption of independent data points (like in PROC REG and PROC GLM).
In PROC GLIMMIX, for example, the R matrix is the variance-covariance matrix of the residuals and typically it is of type AR(1) or TOEP (Toeplitz). Note: The random effects in the study and the error term are assumed to be independent random variables.
So to some extent you can correctly handle longitudinal data (for many subjects), but for real econometric analyses these procedures obviously fall short.

 

Koen

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1081 views
  • 2 likes
  • 4 in conversation