The gamma coefficient with the bias-corrected and accelerated boostrap confidence interval

Described in Chapter 7 "The rxc Table"

gamma_coefficient_rxc_bca(n, nboot = 10000, alpha = 0.05)

Arguments

n

the observed table (an rxc matrix)

nboot

number of bootstrap samples

alpha

the nominal significance level, used to compute a 100(1-alpha) confidence interval

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

set.seed(9623)
gamma_coefficient_rxc_bca(table_7.7, nboot = 800)
#> The gamma coefficient w / BCa bootstrap CI: gamma = -0.1390 (95% CI -0.2318 to -0.0374)
gamma_coefficient_rxc_bca(table_7.8, nboot = 200)
#> The gamma coefficient w / BCa bootstrap CI: gamma =  0.7757 (95% CI  0.5892 to  0.8580)
if (FALSE) { # \dontrun{
  gamma_coefficient_rxc_bca(table_7.9, nboot = 3000, alpha = 0.2)
} # }