BookmarkSubscribeRSS Feed
awdanne
Calcite | Level 5

Hi, I have normally distributed data that is spatially correlated. When I put in correction code for spatial correlation the chi square/DF value becomes very large showing that it is over dispersed. Is there a correction I can do for this? Also, how do I refer to this code for spatially correlated data in my methods? The code I have is:

PROC GLIMMIX data=WORK.Ch_2_tree_inverts;

CLASS Site Treatment Block;

MODEL pests = Treatment

/ dist=gaussian solution oddsratio;

random residual / type=sp(exp) (Lat Long) subject=Block;

run;

Thanks!

2 REPLIES 2
SteveDenham
Jade | Level 19

I think that if you change the random statement just slightly, it should accommodate overdispersion.  Try:

random _residual_ / type=sp(exp)(lat long) subject=block;

Note the use of the underscores on residual when placed before the slash.

Now on to other questions.  You list Site in the CLASS statement.  This leads me to suspect that there are blocks at multiple sites, and that you have not yet included the random effect of site.  To make sure the overdispersion statement works, you must have unique values for blocks.  By this I mean that if you have block=1 at site=1 and also have block=1 at site=2, you are going to run into problems.  I would suggest, just to be on the safe side, that you change the subject= option to:

subject=block*site;

Another question, and this one just reflects my not knowing the field very well, has to do with the oddsratio option.  What does this represent in a model with gaussian errors?  Since you have an identity link, the best that will happen if you include this is a NOTE or WARNING in the log.  At worst, it will stop the procedure.  The oddsratio option only applies if there is a logit link (could be cumulative or generalized logit).

Steve Denham

awdanne
Calcite | Level 5

Thank you Steve, that was a great help and you're right the oddsratio shouldn't have been there.

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
  • 2 replies
  • 1247 views
  • 3 likes
  • 2 in conversation