pairwise_rogers_tanimoto: Pairwise Rogers & Tanimoto Similarity

View source: R/pairwise_rogers_tanimoto.R

pairwise_rogers_tanimotoR Documentation

Pairwise Rogers & Tanimoto Similarity

Description

Calculates the pairwise Rogers & Tanimoto similarity.

Usage

pairwise_rogers_tanimoto(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: 0

B
1 0
A 1 a b
0 c d

Rogers & Tanimoto = (a+d)/(a+2*(b+c)+d)

Value

A matrix.

Examples

res <- pairwise_rogers_tanimoto(
    data = FoodSample,
    cols = Bisque:Turkey
)

print(res)

tidy(res)


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