pair_dcor {bullseye}R Documentation

Distance correlation

Description

Calculates distance correlation for every numeric variable pair in a dataset.

Usage

pair_dcor(d, handle.na = TRUE, warnings = TRUE, ...)

Arguments

d

A dataframe

handle.na

If TRUE uses pairwise complete observations to calculate distance correlation, otherwise NAs not handled.

warnings

If TRUE, generates a warning for datasets of one row, one column, or with constant variables.

...

other arguments

Details

The distance correlation is calculated using dcor2d from energy package

Value

A tibble of class pairwise with distance correlation for every numeric variable pair, or NULL if there are not at least two numeric variables

Examples

pair_dcor(iris)

[Package bullseye version 1.0.0 Index]