predict.woe: Weights of evidence

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/woe.R

Description

Applies weight of evidence transform of factor variables for binary classification based on a model of class woe.

Usage

1
2
## S3 method for class 'woe'
predict(object, newdata, replace = TRUE, ...)

Arguments

object

Object resulting from a call of woe.

newdata

A matrix or data frame where WOE transform should be applied of the same dimension as the data used for training the woe object.

replace

Logical flag specifying whether the original factor variables should be kept in the output.

...

Currently not used.

Value

Data frame including the transformed numeric woe variables.

Author(s)

Gero Szepannek

References

Good, I. (1950): Probability and the Weighting of Evidences. Charles Griffin, London.

See Also

woe, plot.woe

Examples

1
# see examples in ?woe

Example output

Loading required package: MASS

klaR documentation built on May 29, 2017, 11:01 a.m.

Search within the klaR package
Search all R packages, documentation and source code