pairwise_yules_y: Pairwise Yule's Y

View source: R/pairwise_yules_y.R

pairwise_yules_yR Documentation

Pairwise Yule's Y

Description

Calculates the pairwise Yule's Y (Yule's Sigma, coefficient of colligation).

Usage

pairwise_yules_y(data, cols, case_weights)

Arguments

data

A data frame.

cols

Columns to analyze.

case_weights

An optional column of case weights.

Details

  • Metric: Similarity

  • Symmetrical: Yes

  • Upper Limit: 1

  • Lower Limit: -1

B
1 0
A 1 a b
0 c d

Yule's Y = (sqrt(a*d)-sqrt(b*c))/(sqrt(a*d)+sqrt(b*c))

Value

A matrix.

Examples

pairwise_yules_y(
    data = FoodSample,
    cols = Bisque:Turkey
)


ttrodrigz/onezero documentation built on May 9, 2023, 2:59 p.m.