BookmarkSubscribeRSS Feed
Wedgery325
Calcite | Level 5

I have a research experiment to analyze where I would like to know if there is an interaction between two experimental factors. Let's say that the experiment has 4 replications (rep) and 4 treatments (trt) and I will call the measured variable xyz. I use the following language:

proc glm;

class rep trt;

model xyz=rep|trt;

run;

The output will return dots in place of where p-values usually are. If I remove the interaction term from the model statement, I can get a p-value for rep and trt. Why does SAS not return p-values with more terms in the model? Is it a degrees of freedom issue?


1 REPLY 1
PGStats
Opal | Level 21

There is no room for error in your model, or in other words, you used up all your DFs.

The terms are

Overall mean : 1 df

treatment means : 3 df

replicate means : 3 df

interaction treatment x replicate means : 3x3 = 9 df

Total : 16 df = nb of observations

Your model has enough terms to fit each observation exactly. Without an estimate of error, you cannot derive p-values.

PG

PG

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 2810 views
  • 0 likes
  • 2 in conversation