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

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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