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

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 359 views
  • 1 like
  • 2 in conversation