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
|
| [unstat,umstat,u1,pval1,u2,pval2,wmwnormalpval]=npar_wilcoxmwrsum(data,data2,k,k2)
|
function [unstat,umstat,u1,pval1,u2,pval2,wmwnormalpval]=npar_wilcoxmwrsum(data,data2,k,k2)
% npar_wilcoxmwrsum called by npar_main performs nonparametric wilcoxon-mann-whitney rank-sum test
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Nonparametric Statistical Tests in Matlab
%
% Author:
% Erik B. Erhardt erike@wpi.edu
% Statistics Graduate Student and Teaching Assistant
% Dept. of Mathematical Sciences (508) 831-5546
% Worcester Polytechnic Institute SH 204
% 100 Institute Rd.
% Worcester, MA 01609-2280
%
% Date: 2/6/2003 1:30PM
%
% Program: npar_wilcoxmwrsum.m
% Includes:
% Wilcoxon-Mann-Whitney rank-sum
% Called by:
% npar_main.m
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Wilcoxon-Mann-Whitney rank-sum section BEGIN
if k<=k2;
datasmall=data;
datalarge=data2;
ksmall=k;
klarge=k2;
else;
datasmall=data2;
datalarge=data;
ksmall=k2;
klarge=k;
end;
%%% calculate Un and Um statistics
unstat=0;
for i=1:ksmall;
temp = find(datalarge>datasmall(i));
unstat=unstat+length(temp);
end;
umstat=0;
for i=1:klarge;
temp = find(datasmall>datalarge(i));
umstat=umstat+length(temp);
end;
dataall=[datasmall;datalarge]; % all the data together
wilcoxmw=nchoosek(dataall,k); % wilcoxmw includes all sums of combinations of the data chosen k at a time
n=length(wilcoxmw);
uwmw=zeros(n,1);
for j=1:n;
tempsmall=wilcoxmw(j,:)';
templarge=setdiff(dataall,tempsmall);
for i=1:ksmall;
temp=find(templarge>tempsmall(i));
uwmw(j)=uwmw(j)+length(temp);
end;
uwmw(j);
end;
u1=length(find(uwmw <= umstat)); % the number of sums at least as extreme as datasmall
u2=length(find(uwmw >= umstat));
pval1=u1/n; % pvalues are the proportion of these
pval2=u2/n;
wmwnormalpval=1000;
%%% Wilcoxon-Mann-Whitney rank-sum section END
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
Contact us at files@mathworks.com