R/linear_by_linear_test_rxc.R
linear_by_linear_test_rxc.RdThe linear-by-linear test for association
Described in Chapter 7 "The rxc Table"
An object of the contingencytables_result class,
basically a subclass of base::list(). Use the utils::str() function
to see the specific elements returned.
# Colorectal cancer (Jullumstrø et al., 2009), Table 7.20
linear_by_linear_test_rxc(table_7.7)
#> The linear-by-linear test for association: P = 0.004321, Z = -2.854
# Breast Tumor (Bofin et al., 2004), Table 7.21
linear_by_linear_test_rxc(table_7.8)
#> The linear-by-linear test for association: P = 3.68235e-14, Z = 7.572
linear_by_linear_test_rxc(table_7.8)$Pvalue
#> [1] 3.682351e-14
# Self-rated health (Breidablik et al., 2008)
linear_by_linear_test_rxc(table_7.9)
#> The linear-by-linear test for association: P = 1.17676e-53, Z = 15.421