Robust fit for vectors of different lengths

1 Ansicht (letzte 30 Tage)
Elizabeth Drybrugh
Elizabeth Drybrugh am 11 Feb. 2018
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

Antworten (0)

Kategorien

Mehr zu Linear and Nonlinear Regression finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by