FRIEDMAN Subcommand (NPAR TESTS command)
NPAR TESTS FRIEDMAN=varlist
FRIEDMAN
tests whether k related samples
have been drawn from the same population. The output shows the mean
rank for each variable in the Friedman Ranks table and the number
of valid cases, chi-square, degrees of freedom, and probability in
the Test Statistics table.
Syntax
- The minimum specification is a list of two variables.
- Variables should be at least at the ordinal level of measurement.
Operations
- The values of k variables are ranked from 1 to k for each case, and the mean rank is calculated for each variable over all cases.
- The test statistic has approximately a chi-square distribution. A single test statistic is calculated, comparing all variables.
Example
NPAR TESTS FRIEDMAN=V1 V2 V3
/STATISTICS=DESCRIPTIVES.
- This example tests variables V1, V2, and V3, and the example requests univariate statistics for all three variables.