Learn R Programming

bullseye (version 0.1.2)

pair_chi: Pearson's Contingency Coefficient for association between factors.

Description

Calculates Pearson's Contingency coefficient for every factor variable pair in a dataset.

Usage

pair_chi(d, handle.na = TRUE, ...)

Value

A tibble of class pairwise with calculated Pearson's contingency coefficient for every factor variable pair, or NULL if there are not at least two factor variables

Arguments

d

A dataframe

handle.na

ignored. Pairwise complete observations are used automatically.

...

other arguments

Details

The Pearson's contingency coefficient is calculated using ContCoef. NAs are automatically handled by pairwise omit.

Examples

Run this code
 pair_chi(iris)

Run the code above in your browser using DataLab