sumIV: Auxiliary Function: Compute Sum IV of Given Variable

Description Usage Arguments Details Value See Also Examples

Description

Auxiliary function: sumIV will compute the sum IV of a binned X variable, return a numeric.

Usage

1
sumIV(df, x, totalgood = NULL, totalbad = NULL)

Arguments

df

A dataframe only with Xs and Y variable, and the last variable must be Y.

x

A name character of X variable to be computed.

totalgood

Default NULL. if not default, will use them directly, otherwise will recalculate based on df.

totalbad

Default NULL. if not default, will use them directly, otherwise will recalculate based on df.

Details

notice: the given X variable must have be binned in advance.

Value

A numeric

See Also

Other WOE and IV computing functions: dfIV, getIV, getWOE

Examples

1
2
data(CreditData)
sumIV(CreditData, x = "gender")

xxzcool/scoremodel documentation built on May 4, 2019, 10:56 a.m.