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;
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.