Code covered by the BSD License  

Highlights from
MyFriedman

Be the first to rate this file! 8 Downloads (last 30 days) File Size: 3.99 KB File ID: #25882

MyFriedman

by Giuseppe Cardillo

 

18 Nov 2009 (Updated 23 Apr 2010)

Friedman test for non parametric two way ANalysis Of VAriance

| Watch this File

File Information
Description

The Friedman test is a non-parametric statistical test developed by the U.S. economist Milton Friedman. Similar to the parametric repeated measures ANOVA, it is used to detect differences in treatments across multiple test attempts. The procedure involves ranking each row (or block) together, then considering the values of ranks by columns. Applicable to complete block designs, it is thus a special case of the Durbin test. The Friedman test is used for two-way repeated measures analysis of variance by ranks. In its use of ranks it is similar to the Kruskal-Wallis one-way analysis of variance by ranks. When the number of blocks or treatments is large (i.e. n > 15 or k > 4), the probability distribution can be approximated by that of a chi-square distribution. If n or k is small, the approximation to chi-square becomes poor and the p-value should be obtained from tables of Q specially prepared for the Friedman test. The MatLab function FRIEDMAN only uses the chi-square approximation. On the contrary, MYFRIEDMAN uses the exact distribution for small size samples; else the F and chi square distributions If the p-value is significant, appropriate post-hoc multiple comparisons test is performed

You can visit my homepage http://home.tele2.it/cardillo
My profile on XING http://www.xing.com/go/invita/13675097
My profile on LinkedIN http://it.linkedin.com/in/giuseppecardillo

Required Products Statistics Toolbox
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
18 Nov 2009

Change in help section to cite this file

23 Dec 2009

Changes in description

17 Mar 2010

Multiple post-hoc comparisons test added

18 Mar 2010

bug fixed in input error handling section

23 Apr 2010

bug correction for small samples computation

Tag Activity for this File
Tag Applied By Date/Time
statistics Giuseppe Cardillo 18 Nov 2009 10:10:35
anova2 Giuseppe Cardillo 18 Nov 2009 10:10:35
non parametric Giuseppe Cardillo 18 Nov 2009 10:10:35
friedman Giuseppe Cardillo 18 Nov 2009 10:10:35

Contact us at files@mathworks.com