BookmarkSubscribeRSS Feed
Chewbecca
Calcite | Level 5

I have a design with two levels of an A independent variable and two levels of a B independent variable. I am interested in testing whether levels A2 B2 are significantly different from A1 B1. I've set up the following contrast statements and am not sure how SAS is reading them, because I'm getting very different numbers for both:

 

contrast '1' A -1 1 B -1 1;
contrast '2' A*B 1 -1 -1 1;

 

Just a description of the difference between these (i.e. how SAS is interpreting them) would be greatly appreciated!

1 REPLY 1
PaigeMiller
Diamond | Level 26

Contrast 1 compares levels of the main effects of A and B

Contrast 2 compares levels of the interaction between A and B

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 501 views
  • 1 like
  • 2 in conversation