Hi,
I want to calculate the customer arrival rate. A customer arrives in the store in how many minutes. For example, from our data, we may get that a customer arrives at the store in every 7 min.
if we have two columns, one for "minute" and the other for "no of the customer", what would be the SAS code? This is a Poisson distribution. Please help
Minute "Customer of customers"
5 2
10 6
7 3
6 1
4 2
9 5
11 4
2 3
8 5
So, I want to get " In every how many minutes a customer come?". This is the property of Poisson distribution. The above is just an example. The answer could be " a customer comes in every 1.5 min".
Based on the link which one would be correct
proc genmod data =have; model minute = customer / link=log dist=Poisson; run;
or the following?
proc genmod data =have; model customer = minute / link=log dist=Poisson; run;
Pleaee supply example data in usable form (data step with datalines), and what you expect to get out of it.
Look into proc genmod which has Poisson regression capabilities: https://stats.idre.ucla.edu/sas/output/poisson-regression/
Based on the link which one would be correct
proc genmod data =have; model minute = customer / link=log dist=Poisson; run;
or the following?
proc genmod data =have; model customer = minute / link=log dist=Poisson; run;
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!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.