SquareTable.test_ordinal_association()

statsmodels.stats.contingency_tables.SquareTable.test_ordinal_association

SquareTable.test_ordinal_association(row_scores=None, col_scores=None)

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

An array of numeric row scores

col_scores : array-like

An array of numeric column scores