checkClassBalance: Check Class Balance

Description Usage Arguments Value

View source: R/checkClassBalance.R

Description

Calculate the ratio of the most common class to the least common class

Usage

1

Arguments

y

A vector of class labels.

na.rm

Logical indicating whether or not to remove NA values before computation proceeds.

...

Additional optional arguments to be passed onto table.

Value

Returns the ratio of the frequencies for the largest class and the smallest class.


bgreenwell/bmisc documentation built on Sept. 24, 2019, 11:09 a.m.