betasUnder: betasUnder

Description Usage Arguments Value Examples

Description

Defines the possible levels of undersampling given the class proporiton

Usage

1
betasUnder(y, positive = 1, N = 10, method = "perc")

Arguments

y

response variable

positive

value of the positive (minority) class

N

number of values of beta to return

method

method to compute beta: perc or prob

Value

values of beta for a give response variable

Examples

1
2
y <- rep(c(1, 0, 1, 0, 0, 0), 100)
betasUnder(y, positive=1, N = 10, method="perc")

dalpozz/warping documentation built on May 14, 2019, 3:32 p.m.