ezr.plot_against_target: Plot Number Against Binary Target

Description Usage Arguments Details Value

Description

Plot a column against a binary target.

Usage

1
2
3
4
5
ezr.plot_against_target(dataset, predictor, binary_target,
  style = "equal", n_breaks = 10, fixed_breaks = NULL,
  return_as_1plot = TRUE, add_text = TRUE, default_bar_color = FALSE,
  include_response_rate = TRUE, higher_morelikely = TRUE,
  round_breaks = 0)

Arguments

dataset

dataframe

predictor

numerical value

binary_target

a column that only has 0s and 1s.

style

Values are 'fixed','equal','quantile','pretty','percentile'. Default is EQUAL with n_breaks=10

n_breaks

Default is 10. How many bins you want.

fixed_breaks

If style=FIXED then you want a vector of values such as seq(0,1000,100)

return_as_1plot

Default is TRUE. If TRUE, this returns a singple plot. Otherwise returns list of plots

add_text

Future work...add text to bar plots.

default_bar_color

TRUE or FALSE. Default is FALSE. This means plot comes out as black. If True then color is orange.

include_response_rate.

Default TRUE. Add the response rate plot to the capture rate plot

higher_morelikely.

Default is TRUE. Higher prediction value = more likely to be a 1. Needs to be set in order for gainslift to be sorted correctly.

Details

Generates Counts by Bin Style plot Cumulative plot Density Plot

Useful for understanding how a value relates to a target.

Value

Returns


jmp1989/easyr documentation built on May 20, 2019, 7:25 a.m.