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

I'm trying to run an analysis in glimmix of some ecological data thats throwing me for a loop, but I'm probabaly overthinking it. The data were collected over 4 years, at 4 blocks where each block contained 1 of 4 different vegetative types. Because the same plots were visited each year, I know I can account for potential covaraince at this level using a random effect of study plot or as a repeated measure using one of the following

 

random int/ subject=plot;

OR

random year/ subject=plot;

 

However, these plots were also visited twice within a given year. How do I account for this second level of repeated-ness? Is it just as simple as :

 

random visit/ subject=plot*yr?

 

and can this kind of statement be combined with one of the above?

1 ACCEPTED SOLUTION

Accepted Solutions
SteveDenham
Jade | Level 19

Here's an idea.  Throw out year.  If you have two visits to a plot per year, then fit visit 1 through 8 as a single repeated measure.  You can then look at 'year' effects by combining adjacent visits in an LSMESTIMATE statement.

 

And if the visits are not equally spaced in time, consider fitting a spline to both the fixed effect and as a random effect (see example 45.15 Comparing Multiple B Splines and Example 45.6 Radial Smoothing of Repeated Measures Data.

 

Steve Denham

View solution in original post

5 REPLIES 5
PGStats
Opal | Level 21

Shouldn't visits be called season instead and considered as a fixed effect?

PG
tlyons
Calcite | Level 5
I don't think so, they're repeated measurements of the same sample unit. But I'm open to it if you can explain why.
PGStats
Opal | Level 21

Well, I am missing some context here.

 

But ecological systems typically got through a cycle during the year. Observations from the Spring may be systematically different from observations from the Fall. Random parameter distributions available in GLIMMIX are unimodal, they won't fit too well. If your visits occurred at different moments of a systematic cycle, then it would be preferable to model that cycle instead of considering them as independent random realizations of a single distribution.  

PG
tlyons
Calcite | Level 5

I think in this case I can assume that they're not systematically different. The data are sort of a maximum number of unique small mammals trapped during each survey. In this case, we know individuals trapped early in the year show up in surveys later in the year, and that fall abundances ought to be larger than spring abundances because there is the potential for multiple litters. For this reason, I know there is covariance among the two samples within a year and and I am just searching for a way to model that out, in addition to the covariance associated with returning to the exact same plots year after year.

SteveDenham
Jade | Level 19

Here's an idea.  Throw out year.  If you have two visits to a plot per year, then fit visit 1 through 8 as a single repeated measure.  You can then look at 'year' effects by combining adjacent visits in an LSMESTIMATE statement.

 

And if the visits are not equally spaced in time, consider fitting a spline to both the fixed effect and as a random effect (see example 45.15 Comparing Multiple B Splines and Example 45.6 Radial Smoothing of Repeated Measures Data.

 

Steve Denham

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
  • 5 replies
  • 1568 views
  • 0 likes
  • 3 in conversation