pair_chi {bullseye} | R Documentation |
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, warnings = TRUE, ...)
Arguments
d |
A dataframe |
handle.na |
ignored. Pairwise complete observations are used automatically. |
warnings |
If TRUE, generates a warning for datasets of one row, one column, or with constant variables. |
... |
other arguments |
Details
The Pearson's contingency coefficient is calculated using ContCoef
.
NAs are automatically handled by pairwise omit.
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
Examples
pair_chi(iris)
[Package bullseye version 1.0.0 Index]