Create a function removeInsignificant(), which takes a dataset X and labels Y, p-value significance level (for example, p=0.1, p=0.05) and uses ANOVA or t-test to detect statistically insignificant features (regarding difference between records belon

3 次查看(过去 30 天)
function [X_take] = removeInsignificant(X, Y, p)
for i = 1:16
disp(i)
p2 = anova1(X(:,i),Y(:,1),'off');
disp(p2)
end
r = p2 >= p;
disp(r)
X_take = ones(size(X,2),1);
end

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 ANOVA 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by