Hi, here is a follow up to yesterday's question regarding a script running multiple Oneway t-test using a "Where" clause.
The following script does almost the right thing but the headers for each subset do not appear in the Journal.
Names Default to Here(1);
dt = Current Data Table();
For(i=92, i<= N Col (dt),i++,
ow = Oneway(
Y( :Delta mRSS W24 ),
X( :TRT01P ),
t Test( 1 ),
invisible,
Where( :(Column (i)) == 1 )
);
report(ow) <<journal;
ow = Oneway(
Y( :Delta mRSS W24 ),
X( :TRT01P ),
t Test( 1 ),
invisible,
Where( :(Column (i)) == 2 )
);
report(ow) <<journal;
ow = Oneway(
Y( :Delta mRSS W24 ),
X( :TRT01P ),
t Test( 1 ),
invisible,
Where( :(Column (i)) == 3 )
);
report(ow) <<journal;
);
OUTPUT FROM THE SCRIPT (One item)

DESIRED OUTPUT (Manual analysis; NOTE the Header Bar containing the Subset being considered):
