BookmarkSubscribeRSS Feed
jackice
Calcite | Level 5

Hello all, 

I have a data set of count data (Variable is TOTAL) that on histogram is definitly following Poisson and have many zeros values as well 

When I run this programmation below it runs fine in its default normal mode but as soon as I put Dist Poisson Link=log" in the programmation then SAS cant do it ... I am guessing its because of Log(0)=err but the same model in R with family poisson runs fine ... why and what is my solution in this SAS programmation please? 

  proc glimmix data=FAMAIN plots=ALL;
  class HiveOrientation SunPosition Box Bloc Boxid HiveID Day;
  model TOTAL = HiveOrientation|SunPosition|Box /*/dist=poisson link=log solution*/;
  random Bloc HiveID(Bloc) Day(HiveID Bloc);
  lsmeans SunPosition /pdiff ilink lines;
  run;

3 REPLIES 3
PeterClemmensen
Tourmaline | Level 20

Can you provide some sample data?

jackice
Calcite | Level 5

there u go draycut and thanks for looking into this for me 

jackice
Calcite | Level 5

perhaps i have to change SAS Main procedure and include zero inflated ? or I dont have enough zero and I could manually transformed log(x+1) - count data variance increasing with count value is my case for sure ... 

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 Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1297 views
  • 0 likes
  • 2 in conversation