Hi all, I am running a t-test for variables NHH and AGWRKRTYP_G. I want to modify the output from PROC TTEST using conditional logic so that if ProbF > 0.05 (from the equality output dataset) then display the Pooled method p-value and not the Satterthwaite p-value (from the ttest dataset). Am I able to use conditional logic using two datasets if I do not want to merge them? Is there a way to do this with SQL? ODS TRACE ON;
ODS OUTPUT TTests = work.ttest_nhh;
ODS OUTPUT Equality = work.equality_nhh;
PROC TTEST DATA = import.agworker_sub118 ALPHA = 0.05;
VAR NHH;
CLASS AGWKRTYP_G;
RUN;
ODS TRACE OFF;
... View more