Discussion:
proc ttest (help sas programming)
(too old to reply)
Kijoeng Nam
2007-10-10 17:24:32 UTC
Permalink
*

DATA* QUES6_4;

DO GROUP = 'A' ,'B' ,'C';

DO I=*1* TO *10*;

X = ROUND(RANNOR(*135*)**10* + *300* + *5**(GROUP EQ 'A') - *7**(GROUP EQ
'C'));

Y = ROUND(RANUNI(*135*)**100* +X);

OUTPUT;

END;

END;

DROP I;
* RUN*;

I have above data set
and I want to perform t-test on X and Y using only groups 'A' and 'C'.
and I shouldn't use any DATA steps to do this..

I don't know since I only know tipical t-test using two groups among two
groups if you know pleaselet me know..

thanks in advance.
B***@HGSI.COM
2007-10-10 17:38:44 UTC
Permalink
The WHERE statement is what you need.

proc ttest data=ques6_4;
where group in ('A', 'B');
class group;
var x y;
run;


Bob Abelson
HGSI
240 314 4400 x1374
***@hgsi.com



"Kijoeng Nam" <***@GMAIL.COM>
Sent by: "SAS(r) Discussion" <SAS-***@LISTSERV.UGA.EDU>
10/10/2007 01:30 PM
Please respond to
"Kijoeng Nam" <***@GMAIL.COM>


To
SAS-***@LISTSERV.UGA.EDU
cc

Subject
proc ttest (help sas programming)






*

DATA* QUES6_4;

DO GROUP = 'A' ,'B' ,'C';

DO I=*1* TO *10*;

X = ROUND(RANNOR(*135*)**10* + *300* + *5**(GROUP EQ 'A') - *7**(GROUP EQ
'C'));

Y = ROUND(RANUNI(*135*)**100* +X);

OUTPUT;

END;

END;

DROP I;
* RUN*;

I have above data set
and I want to perform t-test on X and Y using only groups 'A' and 'C'.
and I shouldn't use any DATA steps to do this..

I don't know since I only know tipical t-test using two groups among two
groups if you know pleaselet me know..

thanks in advance.

Loading...