friedman
Performs the nonparametric Friedman’s test to compare column effects in a
two-way layout. friedman
tests the null hypothesis that the column
effects are all the same against the alternative that they are not all the
same.
friedman
requires one up to three input arguments:
friedman
returns up to three output arguments:
If friedman is called without any output arguments, then it prints the results in a one-way ANOVA table to the standard output as if displayopt is ’on’.
Examples:
load popcorn; friedman (popcorn, 3); |
[p, anovatab, stats] = friedman (popcorn, 3, "off"); disp (p); |
See also: anova2, kruskalwallis, multcompare
Source Code: friedman
load popcorn; friedman (popcorn, 3); Friedman's ANOVA Table Source SS df MS Chi-sq Prob>Chi-sq --------------------------------------------------------------- Columns 99.7500 2 49.8750 13.76 0.0010 Interaction 0.0833 2 0.0417 Error 16.1667 12 1.3472 Total 116.0000 17 |
load popcorn; [p, atab] = friedman (popcorn, 3, "off"); disp (p); 1.0289e-03 |