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

I am running an ANCOVA on some cross-over study data. The SAS code snippets for the model is:

 

proc mixed data=free_ancova1;
 class ptno treat period seq;
 model s_free = s_bl period seq treat/ddfm=kr noint residual solution; 
 lsmeans treat/pdiff; 
 random ptno(seq);
run;

The "s_bl" is the baseline recorded during a run-in period. The SAS output is:

 

ANCOVA.tiff

 

I also ran an ANOVA without the baseline as the covariate:

 

proc mixed data=free_ancova1;
 class ptno treat period seq;
 model s_free = period seq treat/ddfm=kr noint residual solution; 
 lsmeans treat/pdiff;
 random ptno(seq);
run;

And the output is:

 

ANOVA.png

 

Can someone please help me understand:

 

1. What does it mean for "s_bl" p value <0.0001?

2. Why does the baseline covariate only affect sequence (SEQ) but not other variables? 

 

Thanks.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

1. The small p-value for s_bl indicates that there is a real effect for s_bl. That is, it seems to be significant in the model for predicting the response. Your other p-values indicate that the other effects are not significant. Either they do not predict the response or you do not have enough data to detect the effect.

 

2. When you get rid of the s_bl variable, the degrees of freedom in the model change. By looking at the "Den DF" column, you can see that the SEQ variable gained an extra degree of freedom in the denominator of the F test. But why only that effect? Well, you've specified the DDFM=KR option, which makes various adjustments to the denominator degree of freedom. I don't fully understand the details, but if you change the DDFM= option, you are likely to get different results.

 

But the result is the same: the PERIOD and SEQ variables are not signicant in either model that you've constructed.

 

 

View solution in original post

1 REPLY 1
Rick_SAS
SAS Super FREQ

1. The small p-value for s_bl indicates that there is a real effect for s_bl. That is, it seems to be significant in the model for predicting the response. Your other p-values indicate that the other effects are not significant. Either they do not predict the response or you do not have enough data to detect the effect.

 

2. When you get rid of the s_bl variable, the degrees of freedom in the model change. By looking at the "Den DF" column, you can see that the SEQ variable gained an extra degree of freedom in the denominator of the F test. But why only that effect? Well, you've specified the DDFM=KR option, which makes various adjustments to the denominator degree of freedom. I don't fully understand the details, but if you change the DDFM= option, you are likely to get different results.

 

But the result is the same: the PERIOD and SEQ variables are not signicant in either model that you've constructed.

 

 

sas-innovate-2024.png

Today is the last day to save with the early bird rate! Register today for just $695 - $100 off the standard rate.

 

Plus, 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
  • 1508 views
  • 1 like
  • 2 in conversation