View source: R/ROC_functions.R
This function allows you to determine the Ratio of Counts(ROC) for a particular numeric variable between 2 datasets, whereby the ratio of counts is an indication of the overlap between 2 datasets. This function bins continuous numerical variables into discrete categories before calculating the ROC score.
1 | ROC_numeric(data1, data2, x, y = 2500, num_cat = 2000)
|
data1 |
1st dataset |
data2 |
2nd dataset |
x |
column name that we want to compare ROC on |
y |
All values in y will be rounded off to the nearest y. Defaults to 2500. Should be adjusted according to the data structure. |
num_cat |
Number of categories that can be evaluated. Defaults to 2000 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.