50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


bullseye (version 0.1.2)

pair_polyserial: Polyserial correlation

Description

Calculates Polyserial correlation using for every factor-numeric variable pair in a dataset.

Usage

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

Value

A tibble of class pairwise with polyserial correlation for factor-numeric pairs, or NULL if there are not at least one such pair.

Arguments

d

A dataframe

handle.na

ignored. Pairwise complete observations are used automatically.

...

other arguments

Details

The polyserial correlation is calculated using the polyserial function from the polycor package, and assumes factor levels are in the given order. NAs are automatically handled by pairwise omit.

Examples

Run this code
pair_polyserial(iris)

Run the code above in your browser using DataLab