フィルターのクリア

Robust fit for vectors of different lengths

1 回表示 (過去 30 日間)
Elizabeth Drybrugh
Elizabeth Drybrugh 2018 年 2 月 11 日
編集済み: Elizabeth Drybrugh 2018 年 2 月 11 日
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 件)

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by