Trying to run a T test (not paired) but my variable "group" has 3 levels. (A/B/C)
How can I select only 2 without using a print or data step?
My current observations are stacked 10 of each
PROC ttest data=example;
title "T Tests";
class group;
var x y;
RUN;
I have a previously created data step, but in my actual program I am not allowed to create one. So I can read it from the PROC TTEST, wasn't aware I could use the WHERE statement inside.
I have to test group A and B vs X and Y
Your description is not at all clear.
If you want to limit the data used by PROC TTEST use a WHERE statement.
For example if GROUP has value A, B, C, D and you want to test A against B then add
where group in ('A' 'B');
To your program.
I have a previously created data step, but in my actual program I am not allowed to create one. So I can read it from the PROC TTEST, wasn't aware I could use the WHERE statement inside.
I have to test group A and B vs X and Y
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.