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.
1 | ROC_score(data1, data2, num_cat = 2000, min_items = 5)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.