Rank: 379252 based on 0 downloads (last 30 days) and 0 file submitted
photo

Ehsan Jalilvand

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Ehsan Jalilvand
Updated File Comments Rating
30 Mar 2013 Mann-Kendall Test Mann-Kendall non-parametric trend test. Author: Simone Fatichi

Hi Simone,
First of all thank you. I've made some minor change to your code as follow,to include tied groups in Calculating the variance:
after line 48:
% Determining the variance (tied group included)
h=1;
while ~isempty(V)
g=find(V==V(1));
tp=length(g);
Sum(h)=tp*(tp-1)*(2*tp+5);
V(g)=[];
h=h+1;
end
VarS=((n*(n-1)*(2*n+5))-sum(Sum))/18;

Ehsan

Contact us