woe_table | R Documentation |
Calculates some summaries and the WoE (Weight of Evidence) between a binary outcome and a given predictor variable. Used to biuld the dictionary.
woe_table(predictor, outcome, Laplace = 1e-06, call = rlang::caller_env(0))
predictor |
A atomic vector, usualy with few distinct values. |
outcome |
The dependent variable. A atomic vector with exactly 2 distinct values. |
Laplace |
The |
call |
The execution environment of a currently running function, e.g.
|
a tibble with counts, proportions and woe. Warning: woe can possibly be -Inf. Use 'Laplace' arg to avoid that.
Kullback, S. (1959). Information Theory and Statistics. Wiley, New York.
Hastie, T., Tibshirani, R. and Friedman, J. (1986). Elements of Statistical Learning, Second Edition, Springer, 2009.
Good, I. J. (1985), "Weight of evidence: A brief survey", Bayesian Statistics, 2, pp.249-270.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.