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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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