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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 ANOVA 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!