BookmarkSubscribeRSS Feed
simkinm2
Calcite | Level 5

I have monthly data for events for which I'd like to ensure a good fit for monthly rates to a poisson distribution.  The data looks like this:

 

Month           Number_of_events        Patient_days       Events rate per_1000_patient_days

Jan2016             125                                 500                                250

Feb2016             150                                 523                               286.80

etc.....

 

 

 

I am plotting the monthly rates on a control chart and want to ensure I am meeting the assumption that the underlying distribution is a poisson distribution, otherwise the control limits I've calculated are not valid.  I believe I need to use proc genmod to model number_of_events and use the log of patient_days but want to make sure I am not missing anything.  Any advice is greatly appreciated!

4 REPLIES 4
PGStats
Opal | Level 21

What have you tried so far?

PG
simkinm2
Calcite | Level 5

I've tried something like this:

 

data a;

set a;

log_pt_days= log(patient_days);

run; 

 

proc genmod data = a;

model number_of_events/ dist = poi offset = log_pt_days;

run; 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1591 views
  • 4 likes
  • 4 in conversation