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

I did a growth performance study in grower pigs using 4 different diets ( peas and enzymes were the two factors)and the data turned out to be non-normal. The experiment was arranged as an RCBD on factorial design. 

What distribution should I use...gamma or poisson?

How would I identify the fit statistic? Can I get AIC, BIC values using glimmix or should I use proc mixed?

How can I get the estimate values if I am using any of these distributions? Or should I take the estimate values from proc mixed?

This is the code I have used:

ods html;                                                                                                                     

ods graphics on;                                                                                                                       

                                                                                                                       

proc glimmix data=Body_weight plot =(residualpanel studentpanel);                                                                                                                

class block pen peas enzymes Day;                                                                                                                   

model weight =  peas|enzymes|Day/dist=gamma link=log s;                                                                                                                

random Day/subject=Pen(peas enzymes) type=cs residual;                                                                                                                   

lsmeans peas|enzymes|Day/slice=Day;                                                                                                           

run;                                                                                                                

ods graphics off;                                                                                                                      

  ods html close;

 

I have attached the entire code with my data for further information.

Please guide me.

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

When fitting

 


proc glimmix data=Body_weight plot =(residualpanel studentpanel);  
class block pen peas enzymes Day;
model weight =  peas|enzymes|Day/ /*dist=gamma link=log s*/;
random Day/subject=Pen(peas enzymes) type=un residual;
lsmeans peas|enzymes|Day/slice=Day;
run;

the studentized residuals look like

 

StudentPanel1.png

 

I don't know about the model. But the residuals look fine to me.

PG

View solution in original post

2 REPLIES 2
PGStats
Opal | Level 21

When fitting

 


proc glimmix data=Body_weight plot =(residualpanel studentpanel);  
class block pen peas enzymes Day;
model weight =  peas|enzymes|Day/ /*dist=gamma link=log s*/;
random Day/subject=Pen(peas enzymes) type=un residual;
lsmeans peas|enzymes|Day/slice=Day;
run;

the studentized residuals look like

 

StudentPanel1.png

 

I don't know about the model. But the residuals look fine to me.

PG

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1114 views
  • 1 like
  • 2 in conversation