Code covered by the BSD License
-
KendallTau(x,y)
-
MakeCorr(V)
-
[data,data2,k,k2]=npar_wilcox...
npar_wilcoxrsum called by npar_main performs nonparametric wilcoxon rank-sum test
-
[data,k]=npar_vdwaerden(data,...
npar_vdwaerden called by npar_main performs nonparametric Van Der Waerden normal scores test
-
[data,k]=npar_wilcoxsr(data,k)
npar_wilcoxsr called by npar_main performs nonparametric wilcoxon signed-rank test
-
[datasign,signs,signpval,sign...
npar_sign called by npar_main performs nonparametric sign test
-
[datasign,signs,signpval,sign...
npar_sign called by npar_main performs nonparametric sign test
-
[mcpval,mcsplus]=npar_pitmanm...
npar_pitmanmc called by npar_main performs nonparametric pitman Monte Carlo test
-
[p, r, t, R, T ] =SpearmanRan...
-
[pitind,meansmall,datasmallsu...
npar_pitmanind called by npar_main performs nonparametric pitman test for independent samples
-
[runsrandompval,runsrandompva...
npar_runsrandom called by npar_main performs nonparametric runs test for randomness
-
[spit,statm,sminus,pval1,stat...
npar_pitman called by npar_main performs nonparametric pitman test
-
[tkstat,pval1,pval2,tknormalp...
npar_kendallrank called by npar_main performs nonparametric kendall rank correlation coefficient test
-
[unstat,umstat,u1,pval1,u2,pv...
npar_wilcoxmwrsum called by npar_main performs nonparametric wilcoxon-mann-whitney rank-sum test
-
[unstat,umstat,u1,pval1,u2,pv...
npar_wmwrsum called by npar_main performs nonparametric wilcoxon-mann-whitney rank-sum test
-
gammax(z)
-
npar_main(method,data,data2,t...
npar_main is the main program for Erik's Matlab nonparametric statistical toolbox
-
npar_wilcoxsr_ci(dataorg,k,n,...
npar_wilcoxsr_ci called by npar_main performs nonparametric wilcox signed-rank confidence intervals
-
pitman_mc(data,testmedian,n)
Pitman_MC finds Monte Carlo test for right-tail Pitman test
-
npar_data.m
-
View all files
from
NonParametric Statistical Toolbox
by Erik Erhardt
These are MatLab functions for performing Exact and approximate NonParametric statistics on small da
|
| KendallTau(x,y)
|
function Tau = KendallTau(x,y)
%
% Tau = KendallTau(x,y)
%
% Carlos J. Morales
% March 2003
n = length(x);
xrank = tiedrank(x);
yrank = tiedrank(y);
xsort = sort(x);
Con = zeros(1,n);
Dis = zeros(1,n);
for i = 1:n-1
Con(i) = sum(yrank(i)<yrank(i:end));
Dis(i) = sum(yrank(i)>yrank(i:end));
end
concordant = sum(Con);
discordant = sum(Dis);
Tau = (concordant-discordant)/((1/2)*(n*(n-1)));
|
|
Contact us at files@mathworks.com