GratefulGuest
GratefulGuest

Reputation: 837

Cochran-Armitage test for ordinal / nominal contingency table in python

I would like to apply a statistical significance test to a contingency table where the rows are an ordinal variable and the columns are a nominal variable.

Statsmodels implements tests for nominal/nominal (chi-squared) and ordinal/ordinal (linear-by-linear) contingency tables.

From my research, the appropriate test for ordinal/nominal appears to be an Extended Cochran-Armitage test [EDIT: Originally had Cochran-Armitage].

How can I apply an extended Cochran-Armitage in Python?

Upvotes: 2

Views: 1355

Answers (1)

Gaspa79
Gaspa79

Reputation: 5587

Called "test_ordinal_association" in statsmodels.stats.contingency_tables

Credit to Josef, just turning his comment into an aswer

Upvotes: 1

Related Questions