Robust fit for vectors of different lengths

1 view (last 30 days)
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

Answers (0)

Categories

Find more on Linear and Nonlinear Regression in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!