@Ritter wrote:
Thanks for your help !
Actually, I want to do the two independent sample test. But I don't know how to merge two variables into one and add their origin name as a new variable in new data set at same time.
Could you like show me some code?
Thanks
Here's one way to restructure the data for two independent samples.
data have;
input x y ;
Group='X'; Value=x;output;
Group='Y'; value=y;output;
datalines;
1 2
3 4
5 6
;
run;
proc ttest data=have;
class group;
var value;
run;
... View more