View source: R/pairwise_yules_q.R
pairwise_yules_q | R Documentation |
Calculates the pairwise Yule's Q (Yule coefficient of association).
pairwise_yules_q(data, cols, case_weights)
data |
A data frame. |
cols |
Columns to analyze. |
case_weights |
An optional column of case weights. |
Metric: Similarity
Symmetrical: Yes
Upper Limit: 1
Lower Limit: -1
A matrix.
B | |||
1 | 0 | ||
A | 1 | a | b |
0 | c | d | |
Yule's Q = (ad-bc)/(ad+bc)
pairwise_yules_q(
data = FoodSample,
cols = Bisque:Turkey
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.