pair_dcor: Distance correlation

View source: R/pair_methods.R

pair_dcorR Documentation

Distance correlation

Description

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

Usage

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

Arguments

d

A dataframe

handle.na

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

...

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)

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