New Contributor
Posts: 2

# degrees of freedom in GLIMMIX

Dear SAS users,

We have some doubts with a longitudinal analysis using GLIMMIX and hope someone could advise us. We have daily movement data (Euclidean distances) of 45 individuals of a large bird of prey monitored during seven years which, in total, summed 18574 observations. Birds are evenly distributed in three different regions and no bird moved between regions. We are interested to know if daily movements differed among regions after controlling for bird age. The model we constructed was:

PROC glimmix DATA=COMP.PREDISP method=laplace;

CLASS birdidentity region year;

model distdiar= region age region*age /dist=XXX s;

random int / sub=birdidentity;

random int /sub=year;

LSMEANS REGION/DIFF CL;

run;

Model results (Type III tests of fixed effects) show 15298 denominator degrees of freedom. The model is considering both within and between individual variation, so we are wondering if this procedure “artificially” inflates (in our particular case) degrees of freedom to the point that results could be wrong. Any suggestion?

Thank you very much in advance

David

Regular Contributor
Posts: 152

## Re: degrees of freedom in GLIMMIX

PROC GLIMMIX defaults to the containment method to determine denominator degrees of freedom for models with only random effects like yours.  You should consider first sorting your data by your random effects--BIRDIDENTITY and YEAR--so that all observations for a particular bird across the observation period are ordered together.  Then consider using another method for determining denominator degrees of freedom (for example, specifying the MODEL statement option, DDFM=KENWARDROGER or DDFM=SATTERTHWAITE).

Posts: 2,655

## Re: degrees of freedom in GLIMMIX

Watch out though for these two options for DDFM= when the method is LAPLACE or QUAD--they are not compatible (see Table 41.4 in the GLIMMIX documentation).  Try DDFM=BW (between/within).

Steve Denham

New Contributor
Posts: 2