BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello all,
I'm trying to code a 3-way ANOVA model with a random effect using proc mixed, but I am unsure that I am specifying my model correctly. We have a series of environmental data collected from 3 types of sites (ref, deg, unk), each site is stratified into 2 reaches (near and far), and the data were collected over the 3 years. Multiple, distinct stations that represent one of the three types of sites throughout the estuary were selected randomly, and at each station 9 random replicate measures of the environmental data were collected. We are interested in detecting differences in the environmental data between ref, deg, and unk sites, as well as reach, year, and interactions of the 3. I want to make use of the 9 replicates at each station so I'm using the following model in proc mixed:

class = site reach year station
environmental data = site|reach|year
random site/subject=station

Is this the appropriate approach to take?

Thanks for any help.
-david

This is what happens when you don't have a proper statistician at a given institute.....
1 REPLY 1
SteveDenham
Jade | Level 19
David,

That approach looks pretty good, but there might be an even better approach. Is there any reason to believe that observations within a station and site are correlated from year to year? If so, you may want to expand the model to something like:

class = site reach year station
model environmental data = site|reach|year
random site/subject=station
repeated year/subject=station*site type=un

Good luck.

Steve Denham

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1 reply
  • 905 views
  • 0 likes
  • 2 in conversation