ROC_numeric: Ratio of Counts Numeric Function

Description Usage Arguments

View source: R/ROC_functions.R

Description

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.

Usage

1
ROC_numeric(data1, data2, x, y = 2500, num_cat = 2000)

Arguments

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


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