BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ali_siddiquee
Fluorite | Level 6

Can anybody please let me know how to calculate P value for a Poisson distribution? Thanks.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ali_siddiquee
Fluorite | Level 6

Thank you so much. It is really helpful. Could you also please guide me to help finding appropritae sas code in such cases. Thanks a lot.  

View solution in original post

5 REPLIES 5
ali_siddiquee
Fluorite | Level 6

Thank you so much. It is really helpful. Could you also please guide me to help finding appropritae sas code in such cases. Thanks a lot.  

Rick_SAS
SAS Super FREQ

You accidentally marked your own replay as the solution.

Rick_SAS
SAS Super FREQ

If you have an observed value of some test statistics that follows a Poisson distribution, then Reeza is correct and you can use the CDF function:

lambda=10; obsValue=15;
OneSidePVal = 1 - cdf("Poisson", ObsValue, lambda);

 

However, since most statistics do not follow a Poisson distribution, maybe you are asking about fitting a Poisson distribution to data and obtaining a p-value for the goodness-of-fit test? In that case, you should use PROC GENMOD to fit the distribution as shown in the article "Fitting a Poisson distribution to data in SAS". (You can also use COUNTREG.)

 

Unfortunately, the statistics that come out of PROC GENMOD do not include p-values, but you can use PROC FREQ to compute a chi-square statistics that compares the observed and expected values in each category. The details are shown in the article "Testing the fit of a discrete distribution."  If you are interested, there are also graphical techniques for evaluating the fit.

ali_siddiquee
Fluorite | Level 6

Thank you so much. Really appreciate. Best regards.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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
  • 5 replies
  • 8153 views
  • 1 like
  • 3 in conversation