Pearson_correlation_coefficient_rxc_bca {contingencytables}R Documentation

The Pearson correlation coefficient with the bias-corrected and accelerated

Description

The Pearson correlation coefficient with the bias-corrected and accelerated

boostrap confidence interval

Described in Chapter 7 "The rxc Table"

Usage

Pearson_correlation_coefficient_rxc_bca(
  n,
  nboot = 10000,
  a = seq_len(nrow(n)),
  b = seq_len(ncol(n)),
  alpha = 0.05
)

Arguments

n

the observed table (an rxc matrix)

nboot

number of bootstrap samples

a

scores assigned to the rows

b

scores assigned to the columns

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(3509)
Pearson_correlation_coefficient_rxc_bca(table_7.7, nboot = 800)
Pearson_correlation_coefficient_rxc_bca(table_7.8, nboot = 200)
## Not run: 
  Pearson_correlation_coefficient_rxc_bca(table_7.9)

## End(Not run)

[Package contingencytables version 3.0.0 Index]