propensity.univariate: Exploratory analysis plots for binary response variable.

Description Usage Arguments Value

View source: R/propensity_plots.R

Description

Create plots for exploratory analysis for binary response vs predictor. Also creates frequency distribution of predictor.

Usage

1
propensity.univariate(data_table, target_var, cat_var, y_value)

Arguments

data_table

A data frame containing target_var and cat_var.

target_var

Name of the target variable (binary variable) field in the dataframe data_table

cat_var

Name of the predictor variable field in the dataframe data_table. If the cat_var is numeric and has more than 10 levels it will be broken down into 10 buckets.

y_value

It is the value of target_var (binary response variable) that we are interested in.

Value

2x1 grid plot. Top plot is propensity of target var == y_value against cat_var. The bottom plot is frequency distribution of cat_var in the dataset.


abhishekbishoyi/PropensityPlots documentation built on May 26, 2019, 9:35 a.m.