Assess independence between two ordinal variables.
This is the ‘linear by linear’ association test, which uses weights or scores to target the test to have more power against ordered alternatives.
The test statistic.
The expected value of the test statistic under the null hypothesis.
The standard deviation of the test statistic under the null hypothesis.
The Z-score for the test statistic.
The p-value for the test.
The scores define the trend to which the test is most sensitive.
Using the default row and column scores gives the Cochran-Armitage trend test.