Learn R Programming

bullseye (version 0.1.2)

pair_gkTau: Goodman Kruskal's Tau for association between ordinal factors.

Description

Calculates Goodman Kruskal's Tau coefficient for every factor variable pair in a dataset.

Usage

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

Value

A tibble of class pairwise with Goodman Kruskal's Tau 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 Goodman Kruskal's Tau coefficient is calculated using GoodmanKruskalTau function from the DescTools package. Assumes factor levels are in the given order. NAs are automatically handled by pairwise omit.

Examples

Run this code
 pair_gkTau(iris)

Run the code above in your browser using DataLab