BookmarkSubscribeRSS Feed
CrystalS1
Fluorite | Level 6

I am trying to compare the incidence rates among 3 groups using exact Poisson regression(the sample size is small, and events are rare). My code is as below:

proc genmod data = data; class B/param=glm ref=first; model A = B/dist=poisson link=log offset=log_PY ; exact B; run;

where A is the event indicator, B is a 3-level categorical variable, and log_PY is log(person-years).

I got a message "Note: # indicates that the conditional distribution is degenerate.", and the exact estimates were not produced. The Exact Conditional Tests looks like below:

             Exact Conditional Tests 
Effect   Test   Statistic   p-Value  Exact Mid 

 B       Score          . #       .          . 

    Probability    1.0000 #  1.0000     0.5000 

I am new to this and wonder if anyone could help me to understand why I got this kind of outputs and how to solve the problem?

If any other SAS proc or R package can do the job, please let me know.

Thanks a lot!

1 REPLY 1
StatDave
SAS Super FREQ

Try changing PARAM=GLM to PARAM=REF.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1 reply
  • 1510 views
  • 0 likes
  • 2 in conversation