Robust fit for vectors of different lengths
1 次查看(过去 30 天)
显示 更早的评论
Hi I have x = train_vcts_ASD (13456)(13456x201) and Y = train_behav (190)(190x1). I am having errors making a robust regression due to length size, how can I fix this for this section of my code?
if for edge_i = 1: edge_no_ASD;
[~, stats] = robustfit(train_vcts_ASD(edge_i,:)', train_behav_ASD);
cur_t = stats.t(2);
r_mat_ASD(edge_i) = sign(cur_t)*sqrt(cur_t^2/(no_sub_ASD-1-2+cur_t^2));
p_mat_ASD(edge_i) = 2*(1-tcdf(abs(cur_t), no_sub_ASD-1-2)); %two tailed
end
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!