- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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;
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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