ROC_score: Ratio of Counts Function

Description Usage Arguments

Description

This function allows you to determine the Ratio of Counts(ROC) between 2 datasets, whereby the ratio of counts is an indication of the overlap between 2 datasets. Specifically, it calculates the ROC between 2 datasets for each variable. The overall ROC is the arithmetic mean of all the ROC scores.

Usage

1
ROC_score(data1, data2, num_cat = 2000, min_items = 5)

Arguments

data1

1st dataset

data2

2nd dataset

num_cat

Number of categories that can be evaluated. Defaults to 2000

min_items

Minimum mumber of items in a category. Defaults to 5. If the number falls below this threshold, this particular variable will be omitted from the calculation of the ROC score.


MUNFAI15/cmf documentation built on Jan. 18, 2022, 6:53 p.m.