psi_table: Function to calculate the vector table given 2 vector of...

View source: R/psi.R

psi_tableR Documentation

Function to calculate the vector table given 2 vector of counts

Description

Function to calculate the vector table given 2 vector of counts

Usage

psi_table(old, new)

Arguments

old

A vector of original distribution

new

A vector with the new distribution

Value

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

Examples


o <- factor(sample(letters[1:5], size = 9000, prob = 1:5, replace = TRUE))
n <- factor(sample(letters[1:5], size = 1000, prob = 1:5 + 4, replace = TRUE))

psi_table(o, n)

jbkunst/risk3r documentation built on March 19, 2024, 10:49 p.m.