DATA Step, Macro, Functions and more

2 data set t-test

Reply
Occasional Contributor
Posts: 6

2 data set t-test

Data A

Variable  Type   Len  Format

Date        Num   8      Date9.

Return     Num   8      Best12.

 

Data B

Variable  Type   Len  Format

Date        Num   8      Date9.

Return     Num   8      Best12.

 

I want to do t-test with 2 sample var Return.

How can I do?

 

 

 

 

Super User
Posts: 10,020

Re: 2 data set t-test

Posted in reply to LauChiFung
CODE NOT TESTED.

data have;
length dsn d $ 40;
set data_a data_b indsname=d;
dsn=d;
run;

proc ttest data=have;
 class dsn;
 var return;
run;


Ask a Question
Discussion stats
  • 1 reply
  • 126 views
  • 0 likes
  • 2 in conversation