pair_tauC: Stuarts's tau C for association between ordinal factors.

View source: R/pair_methods.R

pair_tauCR Documentation

Stuarts's tau C for association between ordinal factors.

Description

Calculates Stuarts's tau C every factor variable pair in a dataset.

Usage

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

Arguments

d

A dataframe

handle.na

ignored. Pairwise complete observations are used automatically.

...

other arguments

Details

Calculated using StuartTauC. Assumes factor levels are in the given order. NAs are automatically handled by pairwise omit.

Value

A tibble of class pairwise with factor pairs, or NULL if there are not at least two factor variables

Examples

 d <- data.frame(x=rnorm(20), 
                 y=factor(sample(3,20, replace=TRUE)), 
                 z=factor(sample(2,20, replace=TRUE)))
 pair_tauC(d)

bullseye documentation built on Sept. 11, 2024, 9:24 p.m.