BookmarkSubscribeRSS Feed
NewUsrStat
Lapis Lazuli | Level 10

Hi guys, 

I have to run multiple regression time series modelling on seasonal infection data. 

These data are: hospitalizations of patients with  infections from 3 pathogens across 5 epidemic seasons. I have to model linear trend, secular trend and polynomial trend. 

 

Specifically, what I have to model is the following (pathogens: virus1, virus2, virus3. Totally 3 pathogens): 

 

Tier 2 variables (time trends): 

  • Linear trend or “βs1t ”
  • Seasonal trend or “βs2sin(2πt/52) + βs3cos(2πt/52)”
  • Secular polynomial trend or “βs1t + βs2t2+βs3t3”

Tier 3 variables (time lags):

  • Time lag (+/- 1 weeks)
  • Time lag (+/- 2 weeks)
  • Time lag (+/- 3 weeks)

Tier 4 variables (COVID-19 indicator + interactions):

  • COVID-19 indicator x Weekly number of virus1 admissions
  • COVID-19 indicator x Weekly number of virus2 admissions
  • COVID-19 indicator x Weekly number of COVID-19 admissions
  • COVID-19 indicator x Weekly number of all other causes admissions

Is there a similar study I can inspire to and available documentation on sas coding/data preparation to deal with this predictions? 

 

Thank you in advance

2 REPLIES 2
ballardw
Super User

Do you have access to SAS/ETS? That module contains the main time series tools.

If you aren't sure you can run and the log will show installed modules.

proc product_status;
run;
NewUsrStat
Lapis Lazuli | Level 10
Thank you for your reply!! This is an important suggestion! I will check!

sas-innovate-wordmark-2025-midnight.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. Sign up by March 14 for just $795.


Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 652 views
  • 0 likes
  • 2 in conversation