pairwise_yules_q: Pairwise Yule's Q

View source: R/pairwise_yules_q.R

pairwise_yules_qR Documentation

Pairwise Yule's Q

Description

Calculates the pairwise Yule's Q (Yule coefficient of association).

Usage

pairwise_yules_q(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

Value

A matrix.

Calculations

Calculations

Calculations
B
1 0
A 1 a b
0 c d

Yule's Q = (ad-bc)/(ad+bc)

Examples

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


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