psi_table: PSI Table

Description Usage Arguments Value Examples

View source: R/psi.R

Description

Table for calculate Population Stability Index (PSI)

Usage

1
psi_table(actual, new)

Arguments

actual

A vector of original distribution

new

A vector with the new distribution

Value

A list with psi index (value) a label and the table for with counts, percents, woe.

Examples

1
2
3
4
5
6
set.seed(1313)

actual <- sample(letters[1:3], size = 1000, prob = c(1,1,2), replace = TRUE)
new <- sample(letters[1:3], size = 3000, prob = c(1,2,2), replace = TRUE)

psi_table(actual, new)

jbkunst/riskr documentation built on June 5, 2017, 5:13 p.m.