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

Hi,

The QQ Plot suggests that the studentized residuals of the response variables are not normally distributed.

When I run it with a poisson distributions (or others) it is outputting completely unfeasible estimates. It should be around 0.20 (which would be 20%) and it is estimating negative numbers.

I thought could be scaling issues (multiplied by 100) but it is not.

I have tried different estimation methods too (LaPlace, Quadrature). Not sure if it could be the linkfunction?

Any thoughts?

Thanks,

Marcio

1 ACCEPTED SOLUTION

Accepted Solutions
lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12

You have to be more specific. YOu have to put ilink in the lsmeans statement and in the plots opiton (on the proc statement) to see the inverse link means. Even with ilink option on lsmeans, you first get the logs, then on the right the inverse link (data scale means). Your example code does not give ilink anywhere.

View solution in original post

6 REPLIES 6
Reeza
Super User

Without your data or code its almost impossible to say Smiley Happy

marcioadg
Calcite | Level 5

Thanks Reeza,

Please let me know if this helps. Note this is only one of the codes I tried. Thanks!

proc glimmix data=sows  method=quad  plots=residualpanel(conditional marginal) ;

CLASS week  WeighGr90  ;

MODEL CV = WeighGr90 / dist=poisson   ;

*random _residual_ / group=vargroup ;

random intercept / subject=week ;

lsmeans WeighGr90/pdiff;

output out=igausout pred=p resid=r STUDENT=std;

run;

lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12

The default link function for the Poissonis log. So, I think all your graphics are on the log linear predictor scale. You can add the ilink option to the plots statement to get the inverse line (original scale).

marcioadg
Calcite | Level 5

Thanks lvm, but the problem are the lsmeans estimates, even with the ilink option on the lsmeans statement it is retuning the negative values. Any thoughts?

lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12

You have to be more specific. YOu have to put ilink in the lsmeans statement and in the plots opiton (on the proc statement) to see the inverse link means. Even with ilink option on lsmeans, you first get the logs, then on the right the inverse link (data scale means). Your example code does not give ilink anywhere.

marcioadg
Calcite | Level 5

lvm,

Using the ilink on the lsmeans statement was actually giving the right information, but you are right I was only looking on the left side of the table (so used to it). It is giving me on the right side like you said, the information that I needed. Thanks a lot! I really appreciate it! Problem solved.

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
  • 6 replies
  • 1510 views
  • 3 likes
  • 3 in conversation