The gamma coefficient
Described in Chapter 7 "The rxc Table"
gamma_coefficient_rxc(n)
An object of the contingencytables_result class,
basically a subclass of base::list()
. Use the utils::str()
function
to see the specific elements returned.
gamma_coefficient_rxc(table_7.7)
#> The number of concordant pairs: 50474
#> The number of discordant pairs: 66770
#> The proportion of concordant pairs: 0.430504
#> The proportion of discordant pairs: 0.569496
#> The gamma coefficient: -0.1390
gamma_coefficient_rxc(table_7.8)
#> The number of concordant pairs: 3951
#> The number of discordant pairs: 499
#> The proportion of concordant pairs: 0.887865
#> The proportion of discordant pairs: 0.112135
#> The gamma coefficient: 0.7757
gamma_coefficient_rxc(table_7.9)
#> The number of concordant pairs: 667279
#> The number of discordant pairs: 207158
#> The proportion of concordant pairs: 0.763096
#> The proportion of discordant pairs: 0.236904
#> The gamma coefficient: 0.5262