The linear-by-linear test for association

Described in Chapter 7 "The rxc Table"

linear_by_linear_test_rxc(n, a = seq_len(ncol(n)), b = seq_len(nrow(n)))

Arguments

n

the observed table (an rxc matrix)

a

scores assigned to the rows

b

scores assigned to the columns

Value

An object of the contingencytables_result class, basically a subclass of base::list(). Use the utils::str() function to see the specific elements returned.

Examples

linear_by_linear_test_rxc(table_7.7)
#> The linear-by-linear test for association: P = 0.004321, Z = -2.854
linear_by_linear_test_rxc(table_7.8)
#> The linear-by-linear test for association: P =       NA, Z =     NA
linear_by_linear_test_rxc(table_7.9)
#> The linear-by-linear test for association: P = 0.000000, Z = 15.421