View source: R/pairwise_concordant.R
| pairwise_concordant | R Documentation | 
Calculates the pairwise frequency of concordant pairs.
pairwise_concordant(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: Inf
Lower Limit: 0
| B | |||
| 1 | 0 | ||
| A | 1 | a | b | 
| 0 | c | d | |
Concordant = a+d
A matrix.
res <- pairwise_concordant(
    data = FoodSample,
    cols = Bisque:Turkey
)
print(res)
tidy(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.