BookmarkSubscribeRSS Feed
gdking
Calcite | Level 5

Hi all,

I've been struggling over my data analysis for a while and was hoping you could give me a hand...

I'm running PROC MIXED because I have non-independent data.  I have multiple data points from each of my experimental units, however, due to the nature of my study, I do not have replicates of my treatments.

My SAS code is as follows:

proc mixed covtest data=AIC IC method=ML;

class stream;

model X = Y / s  ddfm=kenwardrogers;

Random intercept /subject=subject;

Run;

I have 2 main questions: 

1. Since I do not have replication of treatments, is it valid to have the subject in the random statement as there is no way to differentiate between subject and treatment?  My understanding of what I have done is not treat subjects a random effect, but rather just told SAS that my X points are not independent, but grouped by subjects and the Kenward-Rogers DDFM will adjust my df accordingly.

2.  Can anyone explain to me in layman's terms how to extract marginal R2s from these models?  I have read a number of papers (e.g. Nakagawa 2013, Snijders and Bosker 1994, etc) but I can't seem to grasp exactly how, and the papers giving macros all use 3 models (null, reduced, full), while I can only create null and full models.  If you could tell me the parameters to use from the SAS output and provide any citations for your info that would be very much appreciated.

Thanks!

G.K.

1 REPLY 1
SteveDenham
Jade | Level 19

Point 1.  When you say you have multiple data points from each experimental unit, are these related in either time or space?  If so, that might change the approach.  However, for now, I would fit the data much as you have, except to change subject=subject to subject=stream.

Point 2. You can form null, reduced and full models.  Null would be

model x=;

Reduced would be:

model x=y;

Full would include the random effect as well.

If that does not give you what I think you are asking for, please post more details about the macros.

Steve Denham

Message was edited by: Steve Denham

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