Skip to content

Commit

Permalink
Bug corrected when option noStandardError is true
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoRianiUNIPR committed Jan 8, 2025
1 parent a0198f9 commit 6fe8b56
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions toolbox/multivariate/corrOrdinal.m
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@
setaub=NaN;
setauc=NaN;
sesom=NaN;
NconMinusNdis=NaN;
Contrib2CminusDtable=NaN;
else

% Compute required elements to find standard errors of the various indexes
Expand Down Expand Up @@ -799,6 +801,12 @@

zsom = som/sesomH0; % z-score
pvalsom = 2*(1 - normcdf(abs(zsom))); %p-value (two-sided)

% Contribution to the final index
NconMinusNdis=Ncon-Ndis;
Contrib2CminusDtable=Ntable;
Contrib2CminusDtable{:,:}=NconMinusNdis;

end

% Store results for Goodman-Kruskal's gamma statistic
Expand Down Expand Up @@ -844,11 +852,8 @@

ConfLimtable=array2table(ConfLim,'RowNames',rownam,'VariableNames',colnamConfInt);
out.ConfLimtable=ConfLimtable;

NconMinusNdis=Ncon-Ndis;

out.Contrib2CminusD=NconMinusNdis;
Contrib2CminusDtable=Ntable;
Contrib2CminusDtable{:,:}=NconMinusNdis;
out.Contrib2CminusDtable=Contrib2CminusDtable;

if dispresults == true
Expand Down

0 comments on commit 6fe8b56

Please sign in to comment.