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.
| Parameters: | row_scores : array-like
col_scores : array-like
|
|---|---|
| Returns: | A bunch with the following attributes: : statistic : float
null_mean : float
null_sd : float
zscore : float
pvalue : float
|
Notes
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.