Learn R Programming

contingencytables (version 3.1.0)

Pearson_correlation_coefficient_rxc: The Pearson correlation coefficient

Description

The Pearson correlation coefficient

Described in Chapter 7 "The rxc Table"

Usage

Pearson_correlation_coefficient_rxc(
  n,
  a = seq_len(nrow(n)),
  b = seq_len(ncol(n)),
  alpha = 0.05
)

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.

Arguments

n

the observed table (an rxc matrix)

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

Examples

Run this code
  Pearson_correlation_coefficient_rxc(table_7.7)
  Pearson_correlation_coefficient_rxc(table_7.8)
  Pearson_correlation_coefficient_rxc(table_7.9)

Run the code above in your browser using DataLab