SAS Forecasting and Econometrics

Forecasting using SAS Visual Forecasting, SAS Forecast Server, SAS Econometrics and more
BookmarkSubscribeRSS Feed
sms1891
Quartz | Level 8

Hi SAS experts,

I have a dataset with monthly hospital onset infection rates for 38 months with intervention variable and also community onset infection rates. How do I perform an interrupted time series for hospital-onset infection rates over time adjusting for intervention and also community onset infection rates? Any help with this would be greatly appreciated. I have attached my excel data sheet and the SAS code. I came up with a couple of SAS codes for this, but not sure if I am correct. The first one is for simple model without adjusting for Community_rate. But the main goal is to evaluate the trend in the HOV_RAte over time after adjusting/ controlling for Community_Rate.

proc autoreg data=TimeSeries;

model HOV_Rate = Baseline_Trend Intervention Trend_Change /

method=ml nlag=5 backstep dwprob;

run;


* Need to adjust for community_rate;
proc autoreg data=TimeSeries;

model HOV_Rate = Community_Rate Baseline_Trend Intervention Trend_Change /

method=ml nlag=5 backstep dwprob;

run;

 

Thank you,

SM

1 REPLY 1
sbxkoenk
SAS Super FREQ

I have moved your post to the "SAS Forecasting and Econometrics"-board !

 

You should start doing this :

Koen

 

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Discussion stats
  • 1 reply
  • 1048 views
  • 0 likes
  • 2 in conversation