--- a +++ b/Semantic Features/isNotSameTTest.m @@ -0,0 +1,18 @@ +function [ p ] = isNotSameTTest( x1, x2, y1, y2 ) +%isNotSameTTest 'both' "means are not equal" (two-tailed test) +% High p -> Hnull: X1 = X2 +% Low p -> Halt : X1 <> X2 + +%x2 should be rt. +x1 = round(x1); %convert to classifications +x2 = round(x2); +y1 = round(y1); +y2 = round(y2); +x1Success = (x1 == y1); +x2Success = (x2 == y2); +[is, p, confInt, stats] = ttest2(x1Success, x2Success, 'Vartype', 'unequal'); + +%should change to just return is so can use as a logic test + +end +