필터 지우기
필터 지우기

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 CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by