Rank: 26556 based on 0 downloads (last 30 days) and 0 files submitted
photo

HR Kang

E-mail
Company/University
Seoul Ntl Univ

Personal Profile:
Professional Interests:
Neuroscience

 

Watch this Author's files

 

Comments and Ratings by HR View all
Updated File Comments Rating
06 Apr 2009 McNemarextest McNemar's Exact Test. Author: Antonio Trujillo-Ortiz

Another mistake: 'b>d' --> 'c>b'
Then res==1 will mean sample 1 having more success, and res==-1 the opposite.

06 Apr 2009 McNemarextest McNemar's Exact Test. Author: Antonio Trujillo-Ortiz

There was a typo in the above comment:
the second 'if P>alpha' should be replaced with 'if P>alpha/2'

06 Apr 2009 McNemarextest McNemar's Exact Test. Author: Antonio Trujillo-Ortiz

It will be useful if output argument feature is added, like following:
function res = McNemarextest(v, t, alpha)
...
if t==1
 if P>alpha
  res = 0;
 else
  if b>d, res=1; else res=-1; end
 end
else
 if P>alpha
  res = 0;
 else
  res = 1;
 end
end

In this way, res will be:
in 2-tailed test, 0 if not significant, 1 if significant
in 1-tailed test, 0 if not significant, 1 if b>d significantly, -1 if b<d significantly.

Top Tags Applied by HR
tau a
Files Tagged by HR
Updated   File Tags Downloads
(last 30 days)
Comments Rating
23 Jul 2011 Screenshot Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey mann, kendall, mannkendall, taub, tau b, trend test 41 25
  • 4.5
4.5 | 16 ratings

Contact us at files@mathworks.com